Bug 460577
Summary: | dhclient-script produces "integer expression expected" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michal Jaegermann <michal> |
Component: | dhcp | Assignee: | David Cantrell <dcantrell> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | mmaslano, wwoods |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-09-17 00:23:38 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michal Jaegermann
2008-08-28 19:09:10 UTC
Opps! The above patch is not correct if the second argument is really a number. The last replacement line should read: [ -n "$lmetric" ] && metric="metric $lmetric" Does 'metric' variable really needs to be global? Is this problem occurring with dhcp-4.0.0-23.fc10? I had changed the initial setting of metric to: metric="${METRIC:-}" Originally it was: metric="${METRIC:-''}" So metric was getting the value of "''" and interfering with the integer test in add_default_gateway(). dhcp-4.0.0-23.fc10 does not have that issue. Too many quotes in the original. :-) Loosing external doubles in 'metric' initialization would have the same effects. Thanks. Closing per comment #3. |