From: Ulrich Drepper Date: Mon, 30 Dec 2002 02:31:19 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_2~438 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31df0ab098442ccd9fdc7571b624d26137361089;p=thirdparty%2Fglibc.git Update. 2002-12-24 GOTO Masanori * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition checking of return value ENOSYS from getdents64. --- diff --git a/ChangeLog b/ChangeLog index 983d826c4ab..c1d35fbbe6c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-12-24 GOTO Masanori + + * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition + checking of return value ENOSYS from getdents64. + 2002-12-28 Andreas Schwab * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d. diff --git a/sysdeps/unix/sysv/linux/getdents.c b/sysdeps/unix/sysv/linux/getdents.c index daef5a518c3..2e6b485047a 100644 --- a/sysdeps/unix/sysv/linux/getdents.c +++ b/sysdeps/unix/sysv/linux/getdents.c @@ -126,7 +126,7 @@ __GETDENTS (int fd, char *buf, size_t nbytes) retval = INLINE_SYSCALL (getdents64, 3, fd, CHECK_N(kbuf, kbytes), kbytes); # ifndef __ASSUME_GETDENTS64_SYSCALL - if (retval != -1 || errno != EINVAL) + if (retval != -1 || (errno != EINVAL && errno != ENOSYS)) # endif { const size_t size_diff = (offsetof (struct kernel_dirent64, d_name)