Bug 169368

Summary: hostid returns sign extended 64 bit value (should be 32 bit)
Product: Red Hat Enterprise Linux 3 Reporter: Neil Johnson <neil>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: tao
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-08 16:37:23 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 Neil Johnson 2005-09-27 15:51:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR 1.1.4322)

Description of problem:
As reported in 
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=160078
except for x86_64 arch.
(Description of problem:
when running hostid on a 64 bit arch, if the most significant bit of the hostid
value is 1, then the returned value will be a sign extended 64 bit value, rather
than the 32 bit value as defined in POSIX.
)


Version-Release number of selected component (if applicable):
5.2.1 (hostid)

How reproducible:
Always

Steps to Reproduce:
1.set hostid to 8 char
2.host id gives 16 bit char

  

Expected Results:  (apparently answer should be 32 bit)
see 160078


Additional info:

unsurprisingly a ia64 arch has the same issue