NetBSD Problem Report #25728

Received: (qmail 24209 invoked by uid 605); 27 May 2004 15:04:56 -0000
Message-Id: <20040527150452.6538F11153@narn.netbsd.org>
Date: Thu, 27 May 2004 15:04:52 +0000 (UTC)
From: ianzag@megasignal.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: ianzag@megasignal.com
To: gnats-bugs@gnats.NetBSD.org
Subject: pppd runs ip-up/ip-down scripts with limited $PATH value
X-Send-Pr-Version: www-1.0

>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 +0000 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:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.