aboutsummaryrefslogtreecommitdiff
path: root/scripts/glibcelf.py
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-09-14 18:52:52 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-09-14 18:57:44 +0200
commit9e5c991106cb04b489272de0ef6a7a6bcef50477 (patch)
treecf37ad6077a1b419a06c242817f5e53cb08078cd /scripts/glibcelf.py
parent05967faf0e3df6aad07f0b05e138e86f82363deb (diff)
downloadglibc-9e5c991106cb04b489272de0ef6a7a6bcef50477.zip
glibc-9e5c991106cb04b489272de0ef6a7a6bcef50477.tar.gz
glibc-9e5c991106cb04b489272de0ef6a7a6bcef50477.tar.bz2
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 'scripts/glibcelf.py')
0 files changed, 0 insertions, 0 deletions