diff options
Diffstat (limited to 'mount.c')
-rw-r--r-- | mount.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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; |