Bug 84766

Summary: uname -o misrepresents operating system
Product: [Retired] Red Hat Linux Reporter: Michael A. Peters <mpeters>
Component: sh-utilsAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: low    
Version: 8.0CC: mitr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-10 12:27:20 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 Michael A. Peters 2003-02-21 03:09:58 UTC
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 12:27:20 UTC
-o is not specified by POSIX and so can't be relied upon anyway.