diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-05-07 01:51:24 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-05-07 01:51:24 +0000 |
commit | cc0aa0f2d74901f3cdc87073f52020b98605cb79 (patch) | |
tree | 34be472c1d90a3fb3b00aeee1d56b109044012d5 /util-linux/mount.c | |
parent | 1b6261944664beedf0e4e3e546635f0a809da41e (diff) | |
download | busybox-w32-cc0aa0f2d74901f3cdc87073f52020b98605cb79.tar.gz busybox-w32-cc0aa0f2d74901f3cdc87073f52020b98605cb79.tar.bz2 busybox-w32-cc0aa0f2d74901f3cdc87073f52020b98605cb79.zip |
Actually we dont need to check if the device is nfs as it wont be stat'ed
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r-- | util-linux/mount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index e511b798b..0295fabc6 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -385,8 +385,7 @@ extern int mount_main(int argc, char **argv) | |||
385 | 385 | ||
386 | if (optind < argc) { | 386 | if (optind < argc) { |
387 | /* if device is a filename get its real path */ | 387 | /* if device is a filename get its real path */ |
388 | if ((strchr(argv[optind], ':') == NULL) && | 388 | if (stat(argv[optind], &statbuf) == 0) { |
389 | (stat(argv[optind], &statbuf) == 0)) { | ||
390 | realpath(argv[optind], device); | 389 | realpath(argv[optind], device); |
391 | } else { | 390 | } else { |
392 | safe_strncpy(device, argv[optind], PATH_MAX); | 391 | safe_strncpy(device, argv[optind], PATH_MAX); |