From: Matthew Harm Bekkema Date: Wed, 1 Jan 2020 13:15:11 +0000 (+1100) Subject: unshare: fix --map-current-user short option (-c) X-Git-Tag: v2.35-rc2~15^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=033e473508896f3264de153e5a6b7158668f3dd9;p=thirdparty%2Futil-linux.git unshare: fix --map-current-user short option (-c) 'c' was missing from the optstring, causing the error: $ unshare --user -c unshare: invalid option -- 'c' Try 'unshare --help' for more information. Fixes: 4175f29e62 ("unshare: add --map-current-user option") Signed-off-by: Matthew Harm Bekkema --- diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c index 0558c571be..8d33f22735 100644 --- a/sys-utils/unshare.c +++ b/sys-utils/unshare.c @@ -349,7 +349,7 @@ int main(int argc, char *argv[]) textdomain(PACKAGE); close_stdout_atexit(); - while ((c = getopt_long(argc, argv, "+fhVmuinpCUrR:w:S:G:", longopts, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "+fhVmuinpCUrR:w:S:G:c", longopts, NULL)) != -1) { switch (c) { case 'f': forkit = 1;