Fix segfault on `mount -t nfs' reported by Gratien D'haese.
This commit is contained in:
1 parent
1c0d311ff4
commit
3d406da0c9
2 files changed
+6
No files matched your search
@@ -405,6 +405,9 @@ extern int mount_main(int argc, char **argv)
|
||||
argv++;
|
||||
}
|
||||
|
||||
if (device == NULL && directory == NULL)
|
||||
goto goodbye;
|
||||
|
||||
if (all == TRUE || directory == NULL) {
|
||||
struct mntent *m;
|
||||
FILE *f = setmntent("/etc/fstab", "r");
|
||||
|
||||
@@ -405,6 +405,9 @@ extern int mount_main(int argc, char **argv)
|
||||
argv++;
|
||||
}
|
||||
|
||||
if (device == NULL && directory == NULL)
|
||||
goto goodbye;
|
||||
|
||||
if (all == TRUE || directory == NULL) {
|
||||
struct mntent *m;
|
||||
FILE *f = setmntent("/etc/fstab", "r");
|
||||
|
||||
Reference in new issue
Block a user