summaryrefslogtreecommitdiff
path: root/coccinelle/dup-fcntl.cocci
Commit message (Collapse)AuthorAgeFilesLines
* coccinelle: further restrict certain transformationsFrantisek Sumsal2019-04-301-1/+3
| | | | | | | | | 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.
* coccinelle: always use fcntl(fd, FD_DUPFD, 3) instead of dup(fd)Lennart Poettering2018-03-201-0/+5
Let's avoid fds 0…2 for safety reasons.