Skip to content

fcntl can create fds

Invoking fcntl() with the F_DUPFD or F_DUPFD_CLOEXEC flags can duplicate file descriptors.

The issue is seen with /usr/bin/ls --color=auto.