Bug 9697

Summary: /etc/ppp/if-up.local is passed incorrect parameters for pty's
Product: [Retired] Red Hat Linux Reporter: Russell Stuart <russell.stuart>
Component: initscriptsAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-03-09 23:55:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Russell Stuart 2000-02-22 23:15:16 UTC
When pppd is passed the "pty script" parameter the tty-device ($2) passed
to /etc/ppp/ip-up is empty.  This is fine.  When /etc/ppp/ip-up
calls /etc/ppp/ip-up.local it passes $*, which breaks when $2 is empty.
The paramaters effectively all get shifted one left, so the tty-device
becomes the speed, and the speed becomes the network-number, and so on.

This can be fixed by changing this line in /etc/ppp/ip-up:
  [ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local $*
to:
  [ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local "$@"

Comment 1 Nalin Dahyabhai 2000-03-09 23:55:59 UTC
This will be fixed in initscripts 5.01 in Raw Hide.