diff options
Diffstat (limited to 'mount/mount.c')
-rw-r--r-- | mount/mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mount/mount.c b/mount/mount.c index 0f1fc5a78..0f986df3b 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -782,8 +782,8 @@ procfsnext(FILE *procfs) { char fsname[100]; while (fgets(line, sizeof(line), procfs)) { - if (sscanf (line, "nodev %[^\n]\n", fsname) == 1) continue; - if (sscanf (line, " %[^ \n]\n", fsname) != 1) continue; + if (sscanf (line, "nodev %[^#\n]\n", fsname) == 1) continue; + if (sscanf (line, " %[^# \n]\n", fsname) != 1) continue; return xstrdup(fsname); } return 0; |