aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorproski <proski@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-06-06 17:03:55 +0000
committerproski <proski@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-06-06 17:03:55 +0000
commita7ba510b3e3f648d6365ba1d773282061c2bfd5c (patch)
treef1d28e9822c2df07e37ac314f0c86ab9ea7e6995 /util-linux
parentce7b393938df9bbad5556982e7169e8054e956c2 (diff)
downloadbusybox-w32-a7ba510b3e3f648d6365ba1d773282061c2bfd5c.tar.gz
busybox-w32-a7ba510b3e3f648d6365ba1d773282061c2bfd5c.tar.bz2
busybox-w32-a7ba510b3e3f648d6365ba1d773282061c2bfd5c.zip
"mount" now reports errors from nfsmount() and assumes NFS mount
if ':' is present in the device name - Pavel Roskin git-svn-id: svn://busybox.net/trunk/busybox@615 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mount.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index bde55d155..ee6c9475a 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -483,11 +483,14 @@ extern int mount_main(int argc, char **argv)
483 } else { 483 } else {
484 if (device && directory) { 484 if (device && directory) {
485#ifdef BB_NFSMOUNT 485#ifdef BB_NFSMOUNT
486 if (strchr(device, ':') != NULL)
487 filesystemType = "nfs";
486 if (strcmp(filesystemType, "nfs") == 0) { 488 if (strcmp(filesystemType, "nfs") == 0) {
487 if (nfsmount 489 int ret;
488 (device, directory, &flags, &extra_opts, &string_flags, 490 ret = nfsmount (device, directory, &flags,
489 1) != 0) 491 &extra_opts, &string_flags, 1);
490 exit(FALSE); 492 if (ret != 0)
493 fatalError("nfsmount failed: %s\n", strerror(errno));
491 } 494 }
492#endif 495#endif
493 exit(mount_one(device, directory, filesystemType, 496 exit(mount_one(device, directory, filesystemType,