[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] Fix nsenter option parsing
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2020-12-12 7:45:25
Message-ID: CAK1hOcOcYVXhPUihA0btZJV5BhOGD=6wvO11CyTL1O=is3aC3w () mail ! gmail ! com
[Download RAW message or body]
Applied, thanks.
On Thu, Dec 10, 2020 at 11:54 PM Thomas Lidén <thomas.liden@advenica.com> wrote:
>
> Usage: nsenter [OPTIONS] [PROG [ARGS]]
> Stop nsenter from processing ARGS to PROG as OPTIONS.
> e.g. "nsenter ls -l" gives: invalid option -- 'l'
>
> diff --git a/util-linux/nsenter.c b/util-linux/nsenter.c
> index c48dcf885..9cfbf21e4 100644
> --- a/util-linux/nsenter.c
> +++ b/util-linux/nsenter.c
> @@ -103,8 +103,9 @@ static const struct namespace_descr ns_list[] = {
> };
> /*
> * Upstream nsenter doesn't support the short option for --preserve-credentials
> + * "+": stop on first non-option
> */
> -static const char opt_str[] ALIGN1 = "U::i::u::n::p::m::""t:+S:+G:+r::w::F";
> +static const char opt_str[] ALIGN1 = "+""U::i::u::n::p::m::""t:+S:+G:+r::w::F";
>
> #if ENABLE_LONG_OPTS
> static const char nsenter_longopts[] ALIGN1 =
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic