commit | 92ed8a351908d60966fd9498574c9e6ace7bd5ab | [log] [tgz] |
---|---|---|
author | Matt Kraai <kraai@debian.org> | Wed Dec 06 15:55:23 2000 +0000 |
committer | Matt Kraai <kraai@debian.org> | Wed Dec 06 15:55:23 2000 +0000 |
tree | e02182bd51b722505acc3a0b571d25e147a2efca | |
parent | ab147f608d1215a9208e6d1fe93b6532a707dae4 [diff] [blame] |
Fix exit status on failure.
diff --git a/mount.c b/mount.c index 34dbb5e..ff8aef3 100644 --- a/mount.c +++ b/mount.c
@@ -493,8 +493,9 @@ } } #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;