diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-11-23 19:44:19 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-11-23 19:44:19 -0500 |
commit | e2fa720be7024cce4fc489f3877476d35da48ee2 (patch) | |
tree | 624a4b85cc7aacccc9a359eaf0ffc00a614ffddf /src/setjmp/mips64 | |
parent | c17cda6d61bc24d5bb51b0837d951da063a1fba5 (diff) | |
download | musl-e2fa720be7024cce4fc489f3877476d35da48ee2.tar.gz musl-e2fa720be7024cce4fc489f3877476d35da48ee2.tar.xz musl-e2fa720be7024cce4fc489f3877476d35da48ee2.zip |
work around linux bug in readlink syscall with zero buffer size
linux fails with EINVAL when a zero buffer size is passed to the syscall. this is non-conforming because POSIX already defines EINVAL with a significantly different meaning: the target is not a symlink. since the request is semantically valid, patch it up by using a dummy buffer of length one, and truncating the return value to zero if it succeeds.
Diffstat (limited to 'src/setjmp/mips64')
0 files changed, 0 insertions, 0 deletions