coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] runcon: add --no-new-privs option


From: Erik Auerswald
Subject: Re: [PATCH] runcon: add --no-new-privs option
Date: Wed, 26 Apr 2017 18:06:20 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

just a nit, there is a typo in an error message...

On Wed, Apr 26, 2017 at 03:57:12PM +0200, Sebastian Kisela wrote:
> [...]
> diff --git a/src/runcon.c b/src/runcon.c
> index 92f519d..9021614 100644
> --- a/src/runcon.c
> +++ b/src/runcon.c
> [...]
> @@ -157,7 +170,15 @@ main (int argc, char **argv)
>          case 'c':
>            compute_trans = true;
>            break;
> -
> +        case NO_NEW_PRIVS_ARG:
> +#ifdef PR_SET_NO_NEW_PRIVS
> +          no_new_privs = true;
> +          break;
> +#else
> +          die (EXIT_FAILURE, 0,
> +               _("--no-new-privs cannot be used in the cureutils version,\
> +                 that is currently installed."));

s/cure/core/

I am not sure how whitespace is handled inside _(). How many spaces are
shown in the output after the comma? Zero, one, or many?

A better wording for the error message might be:
"--no-new-privs support is missing from the currently installed runcon binary."

Thanks,
Erik
-- 
I think of math as a splendid way to learn to think straight.
                        -- Bjarne Stroustrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]