summaryrefslogtreecommitdiff
path: root/packages/glibc/glibc-2.3.2/90_glibc232-statvfs.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/glibc/glibc-2.3.2/90_glibc232-statvfs.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/glibc/glibc-2.3.2/90_glibc232-statvfs.patch')
-rw-r--r--packages/glibc/glibc-2.3.2/90_glibc232-statvfs.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/glibc/glibc-2.3.2/90_glibc232-statvfs.patch b/packages/glibc/glibc-2.3.2/90_glibc232-statvfs.patch
index e69de29bb2..5525f79c30 100644
--- a/packages/glibc/glibc-2.3.2/90_glibc232-statvfs.patch
+++ b/packages/glibc/glibc-2.3.2/90_glibc232-statvfs.patch
@@ -0,0 +1,32 @@
+--- sysdeps/unix/sysv/linux/internal_statvfs.c~ 2003-11-03 18:53:20.000000000 -0500
++++ sysdeps/unix/sysv/linux/internal_statvfs.c 2003-10-28 10:24:47.000000000 -0500
+@@ -17,6 +17,7 @@
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
++#include <assert.h>
+ #include <errno.h>
+ #include <mntent.h>
+ #include <paths.h>
+@@ -167,14 +168,17 @@
+ statvfs call got a name which was not the mount point.
+ Check again, this time without checking for name matches
+ first. */
+- if (! success)
++ if (! success && (name != NULL || fsname != NULL))
+ {
+ if (name != NULL)
+ /* Try without a mount point name. */
+ name = NULL;
+- else if (fsname != NULL)
+- /* Try without a filesystem name. */
+- fsname = fsname2 = NULL;
++ else
++ {
++ /* Try without a filesystem name. */
++ assert (fsname != NULL);
++ fsname = fsname2 = NULL;
++ }
+
+ /* It is not strictly allowed to use rewind here. But
+ this code is part of the implementation so it is