aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/openat.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-01-22 00:57:24 +0000
committerUlrich Drepper <drepper@redhat.com>2006-01-22 00:57:24 +0000
commitbdc7e223aaced59cd03436e1518845db011fba4b (patch)
tree51323b0689ccb4fa33978808e61009e2231f31ae /sysdeps/unix/sysv/linux/openat.c
parentb2680b0331f23ae44f259ecf6c0016e5644c36b6 (diff)
downloadglibc-bdc7e223aaced59cd03436e1518845db011fba4b.tar
glibc-bdc7e223aaced59cd03436e1518845db011fba4b.tar.gz
glibc-bdc7e223aaced59cd03436e1518845db011fba4b.tar.bz2
glibc-bdc7e223aaced59cd03436e1518845db011fba4b.zip
* sysdeps/unix/sysv/linux/renameat.c (__atfct_seterrno_2): Correcty
return EBADF for non-existing file descriptors. * sysdeps/unix/sysv/linux/openat.c (__atfct_seterrno): Likewise. * io/tst-openat.c (do_test): Add some more tests. * io/tst-faccessat.c (do_test): Likewise. * io/tst-renameat.c (do_test): Likewise. * io/tst-fstatat.c (do_test): Likewise. * io/tst-fchmodat.c (do_test): Likewise. * io/tst-fchownat.c (do_test): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/openat.c')
-rw-r--r--sysdeps/unix/sysv/linux/openat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/openat.c b/sysdeps/unix/sysv/linux/openat.c
index bcdbada9c9..67e9df2e45 100644
--- a/sysdeps/unix/sysv/linux/openat.c
+++ b/sysdeps/unix/sysv/linux/openat.c
@@ -60,7 +60,7 @@ __atfct_seterrno (int errval, int fd, const char *buf)
file descriptor number. */
*(char *) strchr (buf + sizeof "/proc/self/fd", '/') = '\0';
- int e = __xstat64 (_STAT_VER, buf, &st);
+ int e = __lxstat64 (_STAT_VER, buf, &st);
if ((e == -1 && errno == ENOENT)
||(e == 0 && !S_ISLNK (st.st_mode)))
errval = EBADF;