aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-28 15:33:12 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-28 15:33:12 +0000
commit778dff541991d12b740084b5c20c2651c8061766 (patch)
tree6c421438a6ce0ac49c0a1284ae52c3a1ac01d0a4
parentb0a58bf2862fbf58d287173ec1e27cdb3237aa11 (diff)
downloadbusybox-w32-778dff541991d12b740084b5c20c2651c8061766.tar.gz
busybox-w32-778dff541991d12b740084b5c20c2651c8061766.tar.bz2
busybox-w32-778dff541991d12b740084b5c20c2651c8061766.zip
Keep trying if an NFS mount fails, and eliminate a call to exit(3).
git-svn-id: svn://busybox.net/trunk/busybox@1945 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r--mount.c9
-rw-r--r--util-linux/mount.c9
2 files changed, 8 insertions, 10 deletions
diff --git a/mount.c b/mount.c
index 551695b9b..76cab7d79 100644
--- a/mount.c
+++ b/mount.c
@@ -479,10 +479,9 @@ singlemount:
479 if (strchr(device, ':') != NULL) 479 if (strchr(device, ':') != NULL)
480 filesystemType = "nfs"; 480 filesystemType = "nfs";
481 if (strcmp(filesystemType, "nfs") == 0) { 481 if (strcmp(filesystemType, "nfs") == 0) {
482 rc = nfsmount (device, directory, &flags, 482 if (nfsmount (device, directory, &flags, &extra_opts,
483 &extra_opts, &string_flags, 1); 483 &string_flags, 1)) {
484 if ( rc != 0) { 484 perror_msg("nfsmount failed");
485 perror_msg_and_die("nfsmount failed");
486 rc = EXIT_FAILURE; 485 rc = EXIT_FAILURE;
487 } 486 }
488 } 487 }
@@ -500,7 +499,7 @@ singlemount:
500 if (all == FALSE && fstabmount == TRUE && directory == NULL) 499 if (all == FALSE && fstabmount == TRUE && directory == NULL)
501 fprintf(stderr, "Can't find %s in /etc/fstab\n", device); 500 fprintf(stderr, "Can't find %s in /etc/fstab\n", device);
502 501
503 exit(rc); 502 return rc;
504 } 503 }
505 504
506 goto singlemount; 505 goto singlemount;
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 551695b9b..76cab7d79 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -479,10 +479,9 @@ singlemount:
479 if (strchr(device, ':') != NULL) 479 if (strchr(device, ':') != NULL)
480 filesystemType = "nfs"; 480 filesystemType = "nfs";
481 if (strcmp(filesystemType, "nfs") == 0) { 481 if (strcmp(filesystemType, "nfs") == 0) {
482 rc = nfsmount (device, directory, &flags, 482 if (nfsmount (device, directory, &flags, &extra_opts,
483 &extra_opts, &string_flags, 1); 483 &string_flags, 1)) {
484 if ( rc != 0) { 484 perror_msg("nfsmount failed");
485 perror_msg_and_die("nfsmount failed");
486 rc = EXIT_FAILURE; 485 rc = EXIT_FAILURE;
487 } 486 }
488 } 487 }
@@ -500,7 +499,7 @@ singlemount:
500 if (all == FALSE && fstabmount == TRUE && directory == NULL) 499 if (all == FALSE && fstabmount == TRUE && directory == NULL)
501 fprintf(stderr, "Can't find %s in /etc/fstab\n", device); 500 fprintf(stderr, "Can't find %s in /etc/fstab\n", device);
502 501
503 exit(rc); 502 return rc;
504 } 503 }
505 504
506 goto singlemount; 505 goto singlemount;