]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/dup-fcntl.cocci
logind: when we cannot attach a passed fd to a device, close it
[thirdparty/systemd.git] / coccinelle / dup-fcntl.cocci
CommitLineData
43dc7aa2
LP
1@@
2expression fd;
3@@
4- dup(fd)
5+ fcntl(fd, F_DUPFD, 3)