Comment 5 for bug 103960

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

Whenever one opens network-admin, and then clicks on the "Host" tab, all entries on /etc/hosts are lumped into as few lines as possible, causing problems such as bug 386791.

To reproduce:
1- Create or download a long /etc/hosts file, with many entries pointing to the same IP (adblocking files are good for that purpose).
2- Run network-admin *as root*, and click on the Hosts tab. You don't need to actually make any change.
3- Close network-admin.

What I expect to happen:
/etc/hosts has not changed.

What really does happen:
All entries on /etc/hosts that point to the same IP are now in the same line, thus creating extremely long lines, and segfaults in getaddrinfo.

It's surprising to see that after 2+ years, this has still not been fixed.