Fix exit status on failure.
This commit is contained in:
@@ -493,8 +493,9 @@ singlemount:
|
||||
}
|
||||
}
|
||||
#endif
|
||||
rc = mount_one(device, directory, filesystemType, flags,
|
||||
string_flags, useMtab, fakeIt, extra_opts, TRUE);
|
||||
if (!mount_one(device, directory, filesystemType, flags,
|
||||
string_flags, useMtab, fakeIt, extra_opts, TRUE))
|
||||
rc = EXIT_FAILURE;
|
||||
|
||||
if (all == FALSE)
|
||||
break;
|
||||
|
@@ -278,7 +278,7 @@ extern int umount_main(int argc, char **argv)
|
||||
else
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if (do_umount(*argv, useMtab) == 0)
|
||||
if (do_umount(*argv, useMtab) == TRUE)
|
||||
return EXIT_SUCCESS;
|
||||
perror("umount");
|
||||
return EXIT_FAILURE;
|
||||
|
Reference in New Issue
Block a user