Bug 84766 - uname -o misrepresents operating system
uname -o misrepresents operating system
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: sh-utils (Show other bugs)
8.0
All Linux
low Severity low
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-02-20 22:09 EST by Michael A. Peters
Modified: 2005-10-31 17:00 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-12-10 07:27:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael A. Peters 2003-02-20 22:09:58 EST
Description of problem:
uname -o reports GNU/Linux as the operating system.
This is not the operating system. The operating system is Red Hat Linux.

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


How reproducible:


Steps to Reproduce:
1. uname -o
2.
3.
    
Actual results:
GNU/Linux

Expected results:
uname should produce a result that is compatible with what is in /etc/release
(or /etc/redhat-release).

Additional info:

When writing bug report software that reports a bug to the vendor, it is useful
to report the operating system automagically. This could be done with uname -o
from sh-utils if it properly reported the operating system. Instead, it reports
a class of operating system - ones that use the Linux kernel and have some GNU
software installed. Operating systems in this class can vary quite a bit, and
the class of the operating system is useless.

Since Red Hat (and many others) do not have an /etc/release file by default,
using uname -o is a second way for bug reporting software to get operating
system information, if uname -o would report the proper operating system,
opposed to just a class of OS's (which for all practical purposes can be
determined via uname -s)
Comment 1 Tim Waugh 2004-12-10 07:27:20 EST
-o is not specified by POSIX and so can't be relied upon anyway.

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