| 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] baselayout | Assignee: | 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 | ||
Created attachment 131739 [details, diff]
Patch for the above mentioned problem
Fixed in our svn repo, thanks |
/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`))