diff options
author | Matt Kraai <kraai@debian.org> | 2000-12-06 15:55:23 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-12-06 15:55:23 +0000 |
commit | 92ed8a351908d60966fd9498574c9e6ace7bd5ab (patch) | |
tree | e02182bd51b722505acc3a0b571d25e147a2efca /util-linux | |
parent | ab147f608d1215a9208e6d1fe93b6532a707dae4 (diff) | |
download | busybox-w32-92ed8a351908d60966fd9498574c9e6ace7bd5ab.tar.gz busybox-w32-92ed8a351908d60966fd9498574c9e6ace7bd5ab.tar.bz2 busybox-w32-92ed8a351908d60966fd9498574c9e6ace7bd5ab.zip |
Fix exit status on failure.
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 34dbb5eee..ff8aef379 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -493,8 +493,9 @@ singlemount: | |||
493 | } | 493 | } |
494 | } | 494 | } |
495 | #endif | 495 | #endif |
496 | rc = mount_one(device, directory, filesystemType, flags, | 496 | if (!mount_one(device, directory, filesystemType, flags, |
497 | string_flags, useMtab, fakeIt, extra_opts, TRUE); | 497 | string_flags, useMtab, fakeIt, extra_opts, TRUE)) |
498 | rc = EXIT_FAILURE; | ||
498 | 499 | ||
499 | if (all == FALSE) | 500 | if (all == FALSE) |
500 | break; | 501 | break; |
diff --git a/util-linux/umount.c b/util-linux/umount.c index 5f3e59caf..eff080463 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c | |||
@@ -278,7 +278,7 @@ extern int umount_main(int argc, char **argv) | |||
278 | else | 278 | else |
279 | return EXIT_FAILURE; | 279 | return EXIT_FAILURE; |
280 | } | 280 | } |
281 | if (do_umount(*argv, useMtab) == 0) | 281 | if (do_umount(*argv, useMtab) == TRUE) |
282 | return EXIT_SUCCESS; | 282 | return EXIT_SUCCESS; |
283 | perror("umount"); | 283 | perror("umount"); |
284 | return EXIT_FAILURE; | 284 | return EXIT_FAILURE; |