Bug 7041 - linuxconf core dumps due to long lins in /etc/hosts
linuxconf core dumps due to long lins in /etc/hosts
Product: Red Hat Linux
Classification: Retired
Component: linuxconf (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Michael K. Johnson
Depends On:
  Show dependency treegraph
Reported: 1999-11-16 07:56 EST by Klaus Franken
Modified: 2008-05-01 11:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-12-15 16:01:51 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Klaus Franken 1999-11-16 07:56:34 EST
I have an entry in /etc/hosts wirth many aliases. The Line is more than
320 chars. Linuxconf core dumps after reading /etc/hosts.
If the line is shorter (less than ca. 320 chars) everything is ok.
Comment 1 jack 1999-11-23 17:21:59 EST
Ok, I found the problem. This will be fixed in linuxconf 1.16r8.1. Note that
the user interface can't handle line that long for editing. Input are especially
limited (because of the web interface) to some arbitrary values. But I have
tested that if you edit any other line, the file is properly written back. If
you edit that specific record, it will be truncated.

I don't know how to include patch in this tool (bugzilla). I can send you
a patch if you need. Basically, a snprintf instead of sprintf at line
464 of the file netconf/hosts.cc. Very old code btw (1994).
Comment 2 Dale Lovelace 1999-12-03 14:48:59 EST
Have verified linuxconf-1.16r10 allows long lines in /etc/hosts. This will be
relased as errata when testing is complete.
Comment 3 Michael K. Johnson 1999-12-15 16:01:59 EST
1.16r10-2 released

Note You need to log in before you can comment on or make changes to this bug.