summaryrefslogtreecommitdiffstats
path: root/mount/umount.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:27:03 +0100
committerKarel Zak2006-12-07 00:27:03 +0100
commit9cb689775c56f308cd2128747b3bb6d5a37be213 (patch)
treed6a22fb6aac0284987f3c6900b8b8df3c205101d /mount/umount.c
parentImported from util-linux-2.13-pre2 tarball. (diff)
downloadkernel-qcow2-util-linux-9cb689775c56f308cd2128747b3bb6d5a37be213.tar.gz
kernel-qcow2-util-linux-9cb689775c56f308cd2128747b3bb6d5a37be213.tar.xz
kernel-qcow2-util-linux-9cb689775c56f308cd2128747b3bb6d5a37be213.zip
Imported from util-linux-2.13-pre3 tarball.
Diffstat (limited to 'mount/umount.c')
-rw-r--r--mount/umount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/umount.c b/mount/umount.c
index 0eab348fb..80030c9e3 100644
--- a/mount/umount.c
+++ b/mount/umount.c
@@ -707,7 +707,7 @@ main (int argc, char *argv[]) {
if (getuid () != geteuid ()) {
suid = 1;
- if (all || types || nomtab || force)
+ if (all || types || nomtab || force || remount)
die (2, _("umount: only root can do that"));
}