Subject: bin/25728: pppd runs ip-up/ip-down scripts with limited $PATH value
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ianzag@megasignal.com>
List: netbsd-bugs
Date: 05/27/2004 15:04:52
>Number:         25728
>Category:       bin
>Synopsis:       pppd runs ip-up/ip-down scripts with limited $PATH value
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 27 15:05:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Ian Zagorskih
>Release:        NetBSD-release-2-0
>Organization:
NOKB GP
>Environment:
NetBSD IANZAG 2.0_BETA NetBSD 2.0_BETA (IANZAG) #2: Wed May 26 13:01:57 NOVST 2004  ianzag@IANZAG:/usr/src/sys/arch/i386/compile/IANZAG i386
>Description:

When pppd daemon runs /etc/ppp/ip-up and ip-down scripts, it uses very limited set of values in $PATH variable. Actually, it contains just PATH=/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin

On the other hand, ip-up/down scripts usually call routines localed in /sbin, /usr/sbin and other non-user places. And it's very simple to miss such $PATH befavour, call routines without hard coded paths and get lot of wasted time trying to debug noted scripts.

If this feature would be mentioned in pppd(8) manual this would explicitly warn people and probably would save a lot of time for someone [like me].

>How-To-Repeat:

Just check $PATH variable value from ip-up or ip-down scripts

>Fix:

Please add proper warnings/notes into "SCRIPTS" section of pppd(8) manual page.

>Release-Note:
>Audit-Trail:
>Unformatted: