public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] misc-progs: Set a reasonable default PATH variable
Date: Mon, 21 Mar 2022 19:07:06 +0000	[thread overview]
Message-ID: <20220321190706.2969988-1-michael.tremer@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 686 bytes --]

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
-- 
2.30.2


             reply	other threads:[~2022-03-21 19:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 19:07 Michael Tremer [this message]
2022-03-21 19:11 ` Peter Müller

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=20220321190706.2969988-1-michael.tremer@ipfire.org \
    --to=michael.tremer@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