Bogus or no nameserver information written to /etc/network/interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Ubuntu) |
Fix Released
|
High
|
Stéphane Graber | ||
netcfg (Ubuntu) |
Fix Released
|
High
|
Stéphane Graber | ||
resolvconf (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Doing a test install of precise with static networking, I noticed bogus (non-ASCII) data written on the dns-nameservers line in /etc/network/
After looking at the code and doing some testing, the problem seems to be that at the end of static.c, the netcfg_
The fix is to either pass the namserver array from the iface struct, or just pass the struct itself and deal with it in the netcfg_
I'll attach two patches - a quick-and-dirty one and one that matches the way the netcfg_write_resolv function works.
I'd love to have someone who's more familiar with the code have a look and make sure that I'm not doing anything bad, and then if it's helpful, I'm happy to create a debdiff.
Thanks and let me know if you have any questions or if there's any more info I can provide.
Changed in netcfg (Ubuntu): | |
status: | Confirmed → Triaged |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in netcfg (Ubuntu): | |
importance: | Undecided → High |
Changed in ifupdown (Ubuntu): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in ifupdown (Ubuntu): | |
status: | Triaged → In Progress |
Changed in ifupdown (Ubuntu): | |
status: | In Progress → Fix Committed |
The "better" patch.