Bug 9697 - /etc/ppp/if-up.local is passed incorrect parameters for pty's
Summary: /etc/ppp/if-up.local is passed incorrect parameters for pty's
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-02-22 23:15 UTC by Russell Stuart
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-03-09 23:55:04 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.