aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-07 01:51:24 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-07 01:51:24 +0000
commit032111c3c532d4d7c139a4025eeae9a58f9961a8 (patch)
tree34be472c1d90a3fb3b00aeee1d56b109044012d5 /util-linux
parentcff4f93c95640d3a99feda2fbb6230064b047167 (diff)
downloadbusybox-w32-032111c3c532d4d7c139a4025eeae9a58f9961a8.tar.gz
busybox-w32-032111c3c532d4d7c139a4025eeae9a58f9961a8.tar.bz2
busybox-w32-032111c3c532d4d7c139a4025eeae9a58f9961a8.zip
Actually we dont need to check if the device is nfs as it wont be stat'ed
git-svn-id: svn://busybox.net/trunk/busybox@2546 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mount.c3
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);