diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-09-14 18:52:52 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-09-14 18:57:44 +0200 |
commit | 9e5c991106cb04b489272de0ef6a7a6bcef50477 (patch) | |
tree | cf37ad6077a1b419a06c242817f5e53cb08078cd /sysdeps/unix/confstr.h | |
parent | 05967faf0e3df6aad07f0b05e138e86f82363deb (diff) | |
download | glibc-9e5c991106cb04b489272de0ef6a7a6bcef50477.tar.gz glibc-9e5c991106cb04b489272de0ef6a7a6bcef50477.tar.xz glibc-9e5c991106cb04b489272de0ef6a7a6bcef50477.zip |
hurd: Fix readlink() hanging on fifo
readlink() opens the target with O_READ to be able to read the symlink content. When the target is actually a fifo, that would hang waiting for a writer (caught in the coreutils testsuite). We thus have to first lookup the target without O_READ to perform io_stat and lookout for fifos, and only after checking the symlink type, we can re-lookup with O_READ.
Diffstat (limited to 'sysdeps/unix/confstr.h')
0 files changed, 0 insertions, 0 deletions