changeset 1476:2fc06b743001

(read_filesystem_list) [MOUNTED_GETMNT]: Don't infloop on getmnt(2) returning 0. Christian von Roques
author Jim Meyering <jim@meyering.net>
date Sat, 15 Aug 1998 03:01:13 +0000
parents f15b2346b20a
children d7208c491804
files lib/mountlist.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -393,8 +393,8 @@
     struct fs_data fsd;
 
     while (errno = 0,
-	   0 <= (val = getmnt (&offset, &fsd, sizeof (fsd), NOSTAT_MANY,
-			       (char *) 0)))
+	   0 < (val = getmnt (&offset, &fsd, sizeof (fsd), NOSTAT_MANY,
+			      (char *) 0)))
       {
 	me = (struct mount_entry *) xmalloc (sizeof (struct mount_entry));
 	me->me_devname = xstrdup (fsd.fd_req.devname);