public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] misc-progs: Set a reasonable default PATH variable
@ 2022-03-21 19:07 Michael Tremer
  2022-03-21 19:11 ` Peter Müller
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tremer @ 2022-03-21 19:07 UTC (permalink / raw)
  To: development

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-21 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 19:07 [PATCH] misc-progs: Set a reasonable default PATH variable Michael Tremer
2022-03-21 19:11 ` Peter Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox