summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorRob Landley2006-06-21 02:39:57 +0000
committerRob Landley2006-06-21 02:39:57 +0000
commitdbfb5a3cb7fd8b7e0abed669efe65d689bccbd38 (patch)
tree0d67886192d7fc7c505b7188eb212eec825e58a0 /util-linux
parent399d45f1c6ecfedac9801978b6ec85239142ed8d (diff)
downloadbusybox-dbfb5a3cb7fd8b7e0abed669efe65d689bccbd38.zip
busybox-dbfb5a3cb7fd8b7e0abed669efe65d689bccbd38.tar.gz
Andre (armcc2200@yahoo) patched a bug where successful mounts could sometimes
produce an error, due to a missing rc assignment.
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 9225289..fecf816 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -529,7 +529,8 @@ int mount_main(int argc, char **argv)
// Mount this thing.
- if (singlemount(mtcur)) {
+ rc = singlemount(mtcur);
+ if(rc) {
// Don't whine about already mounted fs when mounting all.
// Note: we should probably change return value to indicate
// failure, without causing a duplicate error message.