Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 193574

Summary: sys-apps/baselayout-2.0.0_rc4-r1: pppd.sh uses bad function call in numerical expression
Product: Gentoo Linux Reporter: Martin Väth <martin>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for the above mentioned problem

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