]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: use F_GETFL, not F_GETFD, in unixfd_open
authorDarrick J. Wong <djwong@kernel.org>
Thu, 28 Aug 2025 17:30:38 +0000 (10:30 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 17 Oct 2025 23:34:21 +0000 (16:34 -0700)
commitff659478ec0eb25951ee23641ae7f359e1a132f5
tree923fa484d421199ffc29901751f44fef4d886f6a
parentd50e6b0465e01379ccc46bab558db2006efb35d4
libext2fs: use F_GETFL, not F_GETFD, in unixfd_open

F_GETFD is the fcntl command that returns FD_* flags, but the callsite
wants to look at the O_* flags.  F_GETFL is the fcntl command that
returns the O_* flags, so change the subcommand to be correct.

Cc: <linux-ext4@vger.kernel.org> # v1.43.2
Fixes: 4ccf9e4fe165cf ("libext2fs: add unixfd_io_manager")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
lib/ext2fs/unix_io.c