mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
ccd52940d0
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)
|