Andre (armcc2200@yahoo) patched a bug where successful mounts could sometimes
authorRob Landley <rob@landley.net>
Wed, 21 Jun 2006 02:39:57 +0000 (02:39 -0000)
committerRob Landley <rob@landley.net>
Wed, 21 Jun 2006 02:39:57 +0000 (02:39 -0000)
produce an error, due to a missing rc assignment.

util-linux/mount.c

index 9225289..fecf816 100644 (file)
@@ -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.