From 92ed8a351908d60966fd9498574c9e6ace7bd5ab Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 6 Dec 2000 15:55:23 +0000 Subject: Fix exit status on failure. --- util-linux/mount.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util-linux/mount.c') 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: } } #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; -- cgit v1.2.3