mirror of
https://github.com/sheumann/hush.git
synced 2025-01-14 12:30:40 +00:00
Fix -a support (broken by previous patch).
This commit is contained in:
parent
3d406da0c9
commit
24ed3bee0c
6
mount.c
6
mount.c
@ -405,14 +405,14 @@ extern int mount_main(int argc, char **argv)
|
|||||||
argv++;
|
argv++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (device == NULL && directory == NULL)
|
|
||||||
goto goodbye;
|
|
||||||
|
|
||||||
if (all == TRUE || directory == NULL) {
|
if (all == TRUE || directory == NULL) {
|
||||||
struct mntent *m;
|
struct mntent *m;
|
||||||
FILE *f = setmntent("/etc/fstab", "r");
|
FILE *f = setmntent("/etc/fstab", "r");
|
||||||
fstabmount = TRUE;
|
fstabmount = TRUE;
|
||||||
|
|
||||||
|
if (all == FALSE && device == NULL)
|
||||||
|
goto goodbye;
|
||||||
|
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
perror_msg_and_die( "\nCannot read /etc/fstab");
|
perror_msg_and_die( "\nCannot read /etc/fstab");
|
||||||
|
|
||||||
|
@ -405,14 +405,14 @@ extern int mount_main(int argc, char **argv)
|
|||||||
argv++;
|
argv++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (device == NULL && directory == NULL)
|
|
||||||
goto goodbye;
|
|
||||||
|
|
||||||
if (all == TRUE || directory == NULL) {
|
if (all == TRUE || directory == NULL) {
|
||||||
struct mntent *m;
|
struct mntent *m;
|
||||||
FILE *f = setmntent("/etc/fstab", "r");
|
FILE *f = setmntent("/etc/fstab", "r");
|
||||||
fstabmount = TRUE;
|
fstabmount = TRUE;
|
||||||
|
|
||||||
|
if (all == FALSE && device == NULL)
|
||||||
|
goto goodbye;
|
||||||
|
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
perror_msg_and_die( "\nCannot read /etc/fstab");
|
perror_msg_and_die( "\nCannot read /etc/fstab");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user