python-pyrex: Rework DEPENDS updates
[openembedded.git] / recipes / glibc / glibc-2.3.2 / 90_glibc232-statvfs.patch
blob5525f79c30f053592211858dbff2834d064d6903
1 --- sysdeps/unix/sysv/linux/internal_statvfs.c~ 2003-11-03 18:53:20.000000000 -0500
2 +++ sysdeps/unix/sysv/linux/internal_statvfs.c 2003-10-28 10:24:47.000000000 -0500
3 @@ -17,6 +17,7 @@
4 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
5 02111-1307 USA. */
7 +#include <assert.h>
8 #include <errno.h>
9 #include <mntent.h>
10 #include <paths.h>
11 @@ -167,14 +168,17 @@
12 statvfs call got a name which was not the mount point.
13 Check again, this time without checking for name matches
14 first. */
15 - if (! success)
16 + if (! success && (name != NULL || fsname != NULL))
18 if (name != NULL)
19 /* Try without a mount point name. */
20 name = NULL;
21 - else if (fsname != NULL)
22 - /* Try without a filesystem name. */
23 - fsname = fsname2 = NULL;
24 + else
25 + {
26 + /* Try without a filesystem name. */
27 + assert (fsname != NULL);
28 + fsname = fsname2 = NULL;
29 + }
31 /* It is not strictly allowed to use rewind here. But
32 this code is part of the implementation so it is