From: Rob Landley Date: Wed, 21 Jun 2006 02:39:57 +0000 (-0000) Subject: Andre (armcc2200@yahoo) patched a bug where successful mounts could sometimes X-Git-Tag: 1_2_0~100 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dbfb5a3cb7fd8b7e0abed669efe65d689bccbd38;p=oweals%2Fbusybox.git Andre (armcc2200@yahoo) patched a bug where successful mounts could sometimes produce an error, due to a missing rc assignment. --- diff --git a/util-linux/mount.c b/util-linux/mount.c index 9225289b6..fecf81606 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.