summaryrefslogtreecommitdiffstats
path: root/sys-apps/util-linux/files/util-linux-2.12-only-root-can-remount.patch
blob: 2a1d44cd4883db075467cc4423d494370e452cad (plain)
1
2
3
4
5
6
7
8
9
10
11
--- util-linux-2.13-pre2/mount/umount.c
+++ util-linux-2.13-pre3/mount/umount.c
@@ -707,7 +707,7 @@
 
 	if (getuid () != geteuid ()) {
 		suid = 1;
-		if (all || types || nomtab || force)
+		if (all || types || nomtab || force || remount)
 			die (2, _("umount: only root can do that"));
 	}