]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/randutils: drop unnecessary fcntl() in random_get_fd()
authorThomas Haller <thaller@redhat.com>
Wed, 22 Feb 2023 15:32:03 +0000 (16:32 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 22 Feb 2023 20:42:40 +0000 (21:42 +0100)
commit261888f15873464b164ede5bb68aaecb06706f50
treebb3402fb7c0b4e3a705f7f8145cc4021c97af172
parentd5c515dc727b40550f2556f7ac70431cb924b4b7
lib/randutils: drop unnecessary fcntl() in random_get_fd()

We already pass O_CLOEXEC flag to open(), no need to modify
the file descriptor with FD_CLOEXEC afterwards.

This was a left over from commit b1fa3e2234fa ('lib: use O_CLOEXEC in
libcommon').

Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/randutils.c