Bug 59744

Summary: bug in ifup-post incorrectly sets hostname
Product: [Retired] Red Hat Linux Reporter: David L. Parsley <parsley>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-02-12 16:01:34 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 David L. Parsley 2002-02-12 16:01:29 UTC
There's a bug in ifup-post near the bottom:

if [ ... \
    -a need hostname \
...

Which doesn't work since test doesn't eval the function; suggested fix:

if need_hostname && [ ...

This bug causes the hostname to be set even when need_hostname is 0

Comment 1 Bill Nottingham 2002-02-13 05:04:54 UTC

*** This bug has been marked as a duplicate of 58946 ***