aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 8b115c9f5..34dbb5eee 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -330,7 +330,7 @@ extern int mount_main(int argc, char **argv)
330 int fakeIt = FALSE; 330 int fakeIt = FALSE;
331 int useMtab = TRUE; 331 int useMtab = TRUE;
332 int i; 332 int i;
333 int rc = FALSE; 333 int rc = EXIT_FAILURE;
334 int fstabmount = FALSE; 334 int fstabmount = FALSE;
335 335
336#if defined BB_FEATURE_USE_DEVPS_PATCH 336#if defined BB_FEATURE_USE_DEVPS_PATCH
@@ -367,7 +367,7 @@ extern int mount_main(int argc, char **argv)
367 free( mntentlist); 367 free( mntentlist);
368 close(fd); 368 close(fd);
369#endif 369#endif
370 exit(TRUE); 370 return EXIT_SUCCESS;
371 } 371 }
372#else 372#else
373 if (argc == 1) { 373 if (argc == 1) {
@@ -388,7 +388,7 @@ extern int mount_main(int argc, char **argv)
388 } else { 388 } else {
389 perror(mtab_file); 389 perror(mtab_file);
390 } 390 }
391 exit(TRUE); 391 return EXIT_SUCCESS;
392 } 392 }
393#endif 393#endif
394 394
@@ -489,7 +489,7 @@ singlemount:
489 &extra_opts, &string_flags, 1); 489 &extra_opts, &string_flags, 1);
490 if ( rc != 0) { 490 if ( rc != 0) {
491 fatalError("nfsmount failed: %s\n", strerror(errno)); 491 fatalError("nfsmount failed: %s\n", strerror(errno));
492 rc = FALSE; 492 rc = EXIT_FAILURE;
493 } 493 }
494 } 494 }
495#endif 495#endif
@@ -499,7 +499,7 @@ singlemount:
499 if (all == FALSE) 499 if (all == FALSE)
500 break; 500 break;
501 501
502 rc = TRUE; // Always return 0 for 'all' 502 rc = EXIT_SUCCESS; // Always return 0 for 'all'
503 } 503 }
504 if (fstabmount == TRUE) 504 if (fstabmount == TRUE)
505 endmntent(f); 505 endmntent(f);
@@ -512,8 +512,6 @@ singlemount:
512 512
513 goto singlemount; 513 goto singlemount;
514 514
515 exit(FALSE);
516
517goodbye: 515goodbye:
518 usage(mount_usage); 516 usage(mount_usage);
519} 517}