mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
Fix segfault on `mount -t nfs' reported by Gratien D'haese.
This commit is contained in:
parent
1c0d311ff4
commit
3d406da0c9
3
mount.c
3
mount.c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user