Fix exit status on failure.

This commit is contained in:
Matt Kraai
2000-12-06 15:55:23 +00:00
parent ab147f608d
commit 92ed8a3519
8 changed files with 42 additions and 36 deletions

View File

@@ -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;

View File

@@ -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;