Thinko.
authorRob Landley <rob@landley.net>
Mon, 4 Sep 2006 19:43:26 +0000 (19:43 -0000)
committerRob Landley <rob@landley.net>
Mon, 4 Sep 2006 19:43:26 +0000 (19:43 -0000)
util-linux/mount.c

index fef5f3f2894e58bad622cf9150f340deb6fa4c53..3e2f781921ce21c6c048ba34c0afb2ddea5a3139 100644 (file)
@@ -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);