mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
![Frantisek Sumsal](/assets/img/avatar_default.png)
Some transformations generate results we don't want to keep, so let's disable such transformations for specific files. Also, disable const-strlen.cocci everywhere, as the STRLEN macro has a pretty limited scope, so the transformation generates false positives in most cases.
8 lines
182 B
Plaintext
8 lines
182 B
Plaintext
@@
|
|
/* We want to stick with dup() in test-fd-util.c */
|
|
position p : script:python() { p[0].file != "src/test/test-fd-util.c" };
|
|
expression fd;
|
|
@@
|
|
- dup@p(fd)
|
|
+ fcntl(fd, F_DUPFD, 3)
|