aboutsummaryrefslogtreecommitdiff
path: root/umount.c
diff options
context:
space:
mode:
Diffstat (limited to 'umount.c')
-rw-r--r--umount.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/umount.c b/umount.c
index 1d9c6bb32..5f3e59caf 100644
--- a/umount.c
+++ b/umount.c
@@ -273,11 +273,14 @@ extern int umount_main(int argc, char **argv)
273 273
274 mtab_read(); 274 mtab_read();
275 if (umountAll == TRUE) { 275 if (umountAll == TRUE) {
276 exit(umount_all(useMtab)); 276 if (umount_all(useMtab) == TRUE)
277 return EXIT_SUCCESS;
278 else
279 return EXIT_FAILURE;
277 } 280 }
278 if (do_umount(*argv, useMtab) == 0) 281 if (do_umount(*argv, useMtab) == 0)
279 exit(TRUE); 282 return EXIT_SUCCESS;
280 perror("umount"); 283 perror("umount");
281 return(FALSE); 284 return EXIT_FAILURE;
282} 285}
283 286