Fix -a support (broken by previous patch).

This commit is contained in:
Matt Kraai 2001-04-17 04:26:05 +00:00
parent 3d406da0c9
commit 24ed3bee0c
2 changed files with 6 additions and 6 deletions

View File

@ -405,14 +405,14 @@ 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");
fstabmount = TRUE;
if (all == FALSE && device == NULL)
goto goodbye;
if (f == NULL)
perror_msg_and_die( "\nCannot read /etc/fstab");

View File

@ -405,14 +405,14 @@ 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");
fstabmount = TRUE;
if (all == FALSE && device == NULL)
goto goodbye;
if (f == NULL)
perror_msg_and_die( "\nCannot read /etc/fstab");