Bug 169368 - hostid returns sign extended 64 bit value (should be 32 bit)
Summary: hostid returns sign extended 64 bit value (should be 32 bit)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: coreutils
Version: 3.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-27 15:51 UTC by Neil Johnson
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-08 16:37:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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