Package: klibc
Version: 1.5.9 Severity: minor
Tags: patch

Hi,

mount in klibc-utils has problems if you try to run it with multiple filesystems as arguments to the "-t" option because it does not correctly check that the mounting succeeded.

The attached patch should fix it.

--
David Härdeman
diff -ur ./klibc-1.5.9.orig/usr/utils/mount_main.c ./klibc-1.5.9/usr/utils/mount_main.c
--- ./klibc-1.5.9.orig/usr/utils/mount_main.c	2008-03-28 21:25:36.000000000 +0100
+++ ./klibc-1.5.9/usr/utils/mount_main.c	2008-05-13 02:41:42.000000000 +0200
@@ -42,8 +42,10 @@
 				rwflag |= MS_RDONLY;
 				goto retry;
 			}
-			break;
+		} else {
+			error = 0;
 		}
+		break;
 	}
 
 	if (error) {

Reply via email to