Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193574 - sys-apps/baselayout-2.0.0_rc4-r1: pppd.sh uses bad function call in numerical expression
Summary: sys-apps/baselayout-2.0.0_rc4-r1: pppd.sh uses bad function call in numerical...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-23 22:18 UTC by Martin Väth
Modified: 2007-09-24 06:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for the above mentioned problem (pppd.sh.patch,322 bytes, patch)
2007-09-23 22:19 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2007-09-23 22:18:38 UTC
/lib/rcscripts/net/pppd.sh contains a numerical expression of the form
  $((${metric} + _ifindex))
The implicit call of a function (_ifindex) does not work when /bin/sh is a symbolic link to dash. It is necessary to explicitly invoke the function:
  $((${metric} + `_ifindex`))
Comment 1 Martin Väth 2007-09-23 22:19:29 UTC
Created attachment 131739 [details, diff]
Patch for the above mentioned problem
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-09-24 06:58:13 UTC
Fixed in our svn repo, thanks