1999-04-07 Andreas Jaeger <aj@arthur.rhein-neckar.de>

* sysdeps/unix/sysv/linux/getdents.c (__getdirentries): Return
	directly if getdents returns with error set.
This commit is contained in:
Andreas Schwab 1999-04-07 05:12:03 +00:00
parent 5a56576d45
commit 516d718a39
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-04-07 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/unix/sysv/linux/getdents.c (__getdirentries): Return
directly if getdents returns with error set.
1999-04-05 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* locale/langinfo.h (THOUSEP): Rename second occurence of

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -82,6 +82,9 @@ __getdirentries (int fd, char *buf, size_t nbytes, off_t *basep)
retval = INLINE_SYSCALL (getdents, 3, fd, (char *) kdp, red_nbytes);
if (retval == -1)
return -1;
while ((char *) kdp < (char *) skdp + retval)
{
const size_t alignment = __alignof__ (struct dirent);