diff options
author | Avinal Kumar <avinal.xlvii@gmail.com> | 2025-07-14 21:34:27 +0530 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-08-05 14:15:33 -0300 |
commit | 25258aef78ec301d25f61d8e5758eb28d3254d94 (patch) | |
tree | d1213278d3d181c29c5d36b1b2fdd967d5236af7 /stdio-common/tst-printf-format-vas-ldouble.c | |
parent | 9a2aceb076b8aa6ffa8edb4adcc9f43a2d3a352d (diff) | |
download | glibc-master.zip glibc-master.tar.gz glibc-master.tar.bz2 |
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/tst-printf-format-vas-ldouble.c')
0 files changed, 0 insertions, 0 deletions