Incorrect argument passing from ip-up to ip-up.local

Bug #243384 reported by Carsten Schneemann
8
Affects Status Importance Assigned to Milestone
ppp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: ppp

The startup script /etc/ppp/ip-up optionally calls another startup script /etc/ppp/ip-up.local iff the latter exists and is executable. However, it incorrectly passes its command line arguments on to ip-up.local.

More precisely, line 47 in version 2.4.4rel-9ubuntu2 reads:
  exec /etc/ppp/ip-up.local "$*"
This invokes ip-up.local like
  /etc/ppp/ip-up.local "$1 $2 $3 $4 $5 $6"
(similarly for >6 arguments). Thus ip-up.local is called with only 1 argument. Instead, line 47 should be
  exec /etc/ppp/ip-up.local "$@"
which invokes ip-up.local like
  /etc/ppp/ip-up.local "$1" "$2" "$3" "$4" "$5" "$6"

A corresponding patch is attached.

Revision history for this message
Carsten Schneemann (carsten-schneemann) wrote :
Revision history for this message
Carsten Schneemann (carsten-schneemann) wrote :

Of course, /etc/ppp/ip-down has exactly the same problem.
Find attached a patch fixing this, too.

Revision history for this message
master-sonic (master-sonic-web) wrote :

I can confirm this.

The described workaround fixes the problem. Thank you!

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Marking as confirmed, could somebody please apply this patch? Thank you!

Changed in ppp (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.