svn commit: branches/uClibc_0_9_28/libc/misc/dirent

vapier at uclibc.org vapier at uclibc.org
Sun Apr 20 03:00:33 UTC 2008


Author: vapier
Date: 2008-04-19 20:00:32 -0700 (Sat, 19 Apr 2008)
New Revision: 21782

Log:
merge rev 16020 from trunk

Modified:
   branches/uClibc_0_9_28/libc/misc/dirent/readdir_r.c


Changeset:
Modified: branches/uClibc_0_9_28/libc/misc/dirent/readdir_r.c
===================================================================
--- branches/uClibc_0_9_28/libc/misc/dirent/readdir_r.c	2008-04-20 02:59:56 UTC (rev 21781)
+++ branches/uClibc_0_9_28/libc/misc/dirent/readdir_r.c	2008-04-20 03:00:32 UTC (rev 21782)
@@ -25,7 +25,7 @@
 			bytes = __getdents(dir->dd_fd, dir->dd_buf, dir->dd_max);
 			if (bytes <= 0) {
 				*result = NULL;
-				ret = errno;
+				ret = (bytes==0)? 0 : errno;
 				goto all_done;
 			}
 			dir->dd_size = bytes;




More information about the uClibc-cvs mailing list