unshare: -r implies -U, not -u
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 9 Nov 2017 14:59:22 +0000 (15:59 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 9 Nov 2017 14:59:22 +0000 (15:59 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/unshare.c

index 6a3da9f91bfb63ade47a0f134f28a88176646e07..a4bbb8c9e26aa6c0df81c8ed5a4836c0179b0bd8 100644 (file)
@@ -217,7 +217,7 @@ int unshare_main(int argc UNUSED_PARAM, char **argv)
                ":\xf3""n"
                ":\xf4""p"
                ":\xf5""U"
-               ":ru"      /* --map-root-user or -r implies -u */
+               ":rU"      /* --map-root-user or -r implies -U */
                ":\xfd""m" /* --mount-proc implies -m */
                , unshare_longopts,
                &proc_mnt_target, &prop_str, &setgrp_str,