Bug 154353
Summary: | ifup-routes fails to ignore commented lines. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Terje Bless <link> |
Component: | initscripts | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED RAWHIDE | QA Contact: | Brock Organ <borgan> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | jos, rvokal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 8.08-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-04-13 03:43:10 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: | |||
Attachments: |
Description
Terje Bless
2005-04-10 21:14:05 UTC
Created attachment 112932 [details]
route-eth0 that tickles both of the poor comment handling bits of ifup-routes.
Created attachment 112933 [details]
Ignore comments in route-eth0 files.
The attached patch makes syntax version detection ignore commented lines, and
ditto for the parsing of "older" syntax files.
These are strictly separate issues, but since the patch is all of 20 lines
including context... :-)
Created attachment 112992 [details]
a better patch
I'm committing this; it looks simpler and calls less commands.
Erm, *fewer* commands. *whack* Will be in 8.08-1. Created attachment 113021 [details]
Modified patch to ignore comments and blank lines.
Patch #112992 will emit RTNETLINK errors for blank lines, and the ${line##\#}
syntax just makes my head hurt.
This modified patch makes the test also ignore blank lines and uses better
grokkable (regex match) test logic.
Note that the patch is against 8.07-1 since 8.08-1 hasn't hit my mirrors yet.
Created attachment 113024 [details]
Modified patch to ignore comments and blank lines.
*sigh*
And of course I had to leave a leftover "echo" in there. :-(
Thanks, added. Will still be in 8.08-1. :) |