aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/scanf14.c
diff options
context:
space:
mode:
authorAvinal Kumar <avinal.xlvii@gmail.com>2025-07-14 21:34:27 +0530
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-08-05 14:15:33 -0300
commit25258aef78ec301d25f61d8e5758eb28d3254d94 (patch)
treed1213278d3d181c29c5d36b1b2fdd967d5236af7 /stdio-common/scanf14.c
parent9a2aceb076b8aa6ffa8edb4adcc9f43a2d3a352d (diff)
downloadglibc-master.zip
glibc-master.tar.gz
glibc-master.tar.bz2
iconv: Fix iconv functions not following symlinks [BZ #32339]HEADmaster
On some file systems iconv do not follow symlinks. This happens because read_conf_file() function's directory traversal loop reject symbolic links and then lstat64() call do not follow symlinks. This commit fixes the directory traversal loop to accept symbolic links and then follow the link using stat64(). The test works by creating a temporary directory and placing a symbolic link inside it that points to a configuration file. It then runs iconvconfig on this directory. The test passes if iconvconfig successfully follows the symlink and generates the cache correctly, confirming that the directory traversal logic now properly handles symbolic links. Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com> Co-authored-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> Reviewed-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Diffstat (limited to 'stdio-common/scanf14.c')
0 files changed, 0 insertions, 0 deletions