From: "Peter Müller" <peter.mueller@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] misc-progs: Set a reasonable default PATH variable
Date: Mon, 21 Mar 2022 19:11:53 +0000 [thread overview]
Message-ID: <f0553850-2670-3469-7a0b-f256041af667@ipfire.org> (raw)
In-Reply-To: <20220321190706.2969988-1-michael.tremer@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 775 bytes --]
Reviewed-by: Peter Müller <peter.mueller(a)ipfire.org>
> We have some scripts in /usr/local/bin which cannot be found by any
> misc-progs which is fixed by this patch.
>
> Fixes: #12811
> Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
> ---
> src/misc-progs/setuid.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/misc-progs/setuid.c b/src/misc-progs/setuid.c
> index 8044742f2..831fb1f90 100644
> --- a/src/misc-progs/setuid.c
> +++ b/src/misc-progs/setuid.c
> @@ -46,7 +46,7 @@
>
> /* Trusted environment for executing commands */
> char * trusted_env[4] = {
> - "PATH=/usr/bin:/usr/sbin:/sbin:/bin",
> + "PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin",
> "SHELL=/bin/sh",
> "TERM=dumb",
> NULL
prev parent reply other threads:[~2022-03-21 19:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 19:07 Michael Tremer
2022-03-21 19:11 ` Peter Müller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f0553850-2670-3469-7a0b-f256041af667@ipfire.org \
--to=peter.mueller@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox