aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-09-04 19:43:26 +0000
committerRob Landley <rob@landley.net>2006-09-04 19:43:26 +0000
commit4d609cb5a3428c37203a1a8cb9a9276bb93db87a (patch)
tree6640eb4bdee8045f911588b5e91aa0c410032100
parent8cedabaee09937809802e1791cbc6caffdbd3024 (diff)
downloadbusybox-4d609cb5a3428c37203a1a8cb9a9276bb93db87a.tar.gz
Thinko.
-rw-r--r--util-linux/mount.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index fef5f3f28..3e2f78192 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -482,7 +482,7 @@ int mount_main(int argc, char **argv)
if (ENABLE_FEATURE_CLEAN_UP) endmntent(mountTable);
return EXIT_SUCCESS;
}
- }
+ } else storage_path = bb_simplify_path(argv[optind]);
// When we have two arguments, the second is the directory and we can
// skip looking at fstab entirely. We can always abspath() the directory
@@ -513,8 +513,6 @@ int mount_main(int argc, char **argv)
fstabname = bb_path_mtab_file;
else fstabname="/etc/fstab";
- storage_path = bb_simplify_path(argv[optind]);
-
if (!(fstab=setmntent(fstabname,"r")))
bb_perror_msg_and_die("Cannot read %s",fstabname);