[Glibc-bsd-commits] r2379 - trunk/glibc-ports/kfreebsd/bits

aurel32 at alioth.debian.org aurel32 at alioth.debian.org
Sun Mar 22 17:32:37 UTC 2009


Author: aurel32
Date: 2009-03-22 17:32:37 +0000 (Sun, 22 Mar 2009)
New Revision: 2379

Modified:
   trunk/glibc-ports/kfreebsd/bits/dirent.h
Log:
Increase length of d_name field in structure dirent to 256 bytes, to match
linux version and fix programs (wrongly ?) using sizeof(struct dirent). This
fixes schroot and sbuild.


Modified: trunk/glibc-ports/kfreebsd/bits/dirent.h
===================================================================
--- trunk/glibc-ports/kfreebsd/bits/dirent.h	2009-03-15 18:41:31 UTC (rev 2378)
+++ trunk/glibc-ports/kfreebsd/bits/dirent.h	2009-03-22 17:32:37 UTC (rev 2379)
@@ -29,7 +29,7 @@
     unsigned char d_namlen;	/* Length of the file name.  */
 
     /* Only this member is in the POSIX standard.  */
-    char d_name[1];		/* File name (actually longer).  */
+    char d_name[256];		/* File name (actually longer).  */
   };
 
 #ifdef __USE_LARGEFILE64
@@ -41,7 +41,7 @@
     unsigned char d_namlen;	/* Length of the file name.  */
 
     /* Only this member is in the POSIX standard.  */
-    char d_name[1];		/* File name (actually longer).  */
+    char d_name[256];		/* File name (actually longer).  */
   };
 #endif
 




More information about the Glibc-bsd-commits mailing list