mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-14 04:18:48 +08:00
(read_filesystem_list) [MOUNTED_GETMNT]: Don't infloop on getmnt(2) returning 0.
Christian von Roques
This commit is contained in:
parent
888da5c359
commit
9d7c2d4f7d
@ -393,7 +393,7 @@ read_filesystem_list (int need_fs_type)
|
|||||||
struct fs_data fsd;
|
struct fs_data fsd;
|
||||||
|
|
||||||
while (errno = 0,
|
while (errno = 0,
|
||||||
0 <= (val = getmnt (&offset, &fsd, sizeof (fsd), NOSTAT_MANY,
|
0 < (val = getmnt (&offset, &fsd, sizeof (fsd), NOSTAT_MANY,
|
||||||
(char *) 0)))
|
(char *) 0)))
|
||||||
{
|
{
|
||||||
me = (struct mount_entry *) xmalloc (sizeof (struct mount_entry));
|
me = (struct mount_entry *) xmalloc (sizeof (struct mount_entry));
|
||||||
|
Loading…
Reference in New Issue
Block a user