summaryrefslogtreecommitdiff
path: root/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'mount.c')
-rw-r--r--mount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mount.c b/mount.c
index 5b6ec1e..d1568d8 100644
--- a/mount.c
+++ b/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");