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");
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");