]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: fix ext2fs_link() for EXT2FS_LINK_APPEND and non-regular files
authorTheodore Ts'o <tytso@mit.edu>
Sun, 25 May 2025 21:38:49 +0000 (17:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 25 May 2025 21:38:49 +0000 (17:38 -0400)
commitaef4ee829aa6318ce812ae8fad7425c21dd4220c
treecc8f0f0df15b205dfe575f7b1d1b7ba99ec4d973
parent0a5dc78ba4dce69bdb320e51a79def9d2e0102d4
libext2fs: fix ext2fs_link() for EXT2FS_LINK_APPEND and non-regular files

Fix the incorrect flag being passed to ext2fs_process_dir_block().
This bug was masked because EXT2_FT_REG_FILE has the same code point
as DIRENT_FLAG_INCLUDE_EMPTY which was the flag that was needed and
mke2fs -d was only use ext2fs_lik() for regular files.

Fixes: 53aa6c54224f ("libext2fs: add the EXT2FS_LINK_APPEND flag ...)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/link.c