projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
293e41a
)
(read_filesystem_list) [MOUNTED_GETMNT]: Don't infloop on getmnt(2) returning 0.
author
Jim Meyering
<jim@meyering.net>
Sat, 15 Aug 1998 03:01:13 +0000
(
03:01
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 15 Aug 1998 03:01:13 +0000
(
03:01
+0000)
Christian von Roques
lib/mountlist.c
patch
|
blob
|
history
diff --git
a/lib/mountlist.c
b/lib/mountlist.c
index 76607245297f8b6b3be00e259dc51b05b9d4ddc5..ac25ee1892834ff5387cf5b0cd6e0c76ac79931d 100644
(file)
--- a/
lib/mountlist.c
+++ b/
lib/mountlist.c
@@
-393,8
+393,8
@@
read_filesystem_list (int need_fs_type)
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);