]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/dup-fcntl.cocci
fs-util: no need for fchmod_and_chown() to access /proc/self/fd directly
[thirdparty/systemd.git] / coccinelle / dup-fcntl.cocci
CommitLineData
43dc7aa2 1@@
ccd52940
FS
2/* We want to stick with dup() in test-fd-util.c */
3position p : script:python() { p[0].file != "src/test/test-fd-util.c" };
43dc7aa2
LP
4expression fd;
5@@
ccd52940 6- dup@p(fd)
43dc7aa2 7+ fcntl(fd, F_DUPFD, 3)