]> git.ipfire.org Git - thirdparty/shadow.git/commit
commonio_open: Remove fcntl call
authorSamanta Navarro <ferivoz@riseup.net>
Fri, 5 May 2023 11:59:07 +0000 (11:59 +0000)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 5 May 2023 14:15:46 +0000 (16:15 +0200)
commit627631bf9a403d39663a3c33a8e4b13147996639
tree8ee64da4d6ba20e0558a5e2e0ecd061bea759694
parente899e3d745e9115b3229ed0b68d268fce7891252
commonio_open: Remove fcntl call

The fcntl call to set FD_CLOEXEC can be performed directly with the
previously performed open call by using the O_CLOEXEC flag.

O_CLOEXEC is required by POSIX.1-2008.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
lib/commonio.c