diff options
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/mount.c | 5 | ||||
-rw-r--r-- | util-linux/umount.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 34dbb5e..ff8aef3 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -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; diff --git a/util-linux/umount.c b/util-linux/umount.c index 5f3e59c..eff0804 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -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; |