Bug#81059: fstat misbehaviour: errno set inappropriately
Ben Collins
bcollins@debian.org
Tue Jan 2 07:58:00 GMT 2001
Seems errno wasn't getting reset if a program called fxstat which tried to
call fstat64 and got ENOSYS. I'm not sure if this is the proper fix, but
I have provided a testcase which shows the problem. Note, the testcase
only works when you compile glibc against LFS capable kernel headers,
and then try to run it on a non-LFS capable kernel. I don't know any
other way around this.
2001-01-01 Ben Collins <bcollins@debian.org>
* sysdeps/unix/sysv/linux/i386/fxstat.c: Reset the old errno if
the syscall for fstat64 fails with ENOSYS.
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
More information about the Libc-alpha
mailing list