GNU bug report logs - #16100
Bug in uname command

Previous Next

Package: coreutils;

Reported by: Vishwas Dhankhar <92vishwas <at> gmail.com>

Date: Tue, 10 Dec 2013 16:52:02 UTC

Severity: normal

Tags: notabug

Merged with 14388, 16101

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16100 in the body.
You can then email your comments to 16100 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#16100; Package coreutils. (Tue, 10 Dec 2013 16:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vishwas Dhankhar <92vishwas <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 10 Dec 2013 16:52:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vishwas Dhankhar <92vishwas <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Bug in uname command
Date: Tue, 10 Dec 2013 15:24:32 +0530
[Message part 1 (text/plain, inline)]
Hi,

Man page of uname command states that uname options:

-r, --kernel-release     print the kernel release
-v, --kernel-version     print the kernel version

But I got the following result while using these options:

inlc7921> uname -r
2.6.16.60-0.58.1.3835.0.PTF.638363-smp

inlc7921> uname -v
#1 SMP Wed Dec 2 12:27:56 UTC 2009

This seems a little opposite to what man page suggests. Please do take a
look.
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#16100; Package coreutils. (Tue, 10 Dec 2013 17:19:01 GMT) Full text and rfc822 format available.

Message #8 received at 16100 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Vishwas Dhankhar <92vishwas <at> gmail.com>, 16100 <at> debbugs.gnu.org,
 GNU bug tracker automated control server <control <at> debbugs.gnu.org>
Subject: Re: bug#16100: Bug in uname command
Date: Tue, 10 Dec 2013 10:18:33 -0700
[Message part 1 (text/plain, inline)]
forcemerge 14388 16100
thanks

On 12/10/2013 02:54 AM, Vishwas Dhankhar wrote:
> Hi,
> 
> Man page of uname command states that uname options:
> 
> -r, --kernel-release     print the kernel release
> -v, --kernel-version     print the kernel version
> 
> But I got the following result while using these options:
> 
> inlc7921> uname -r
> 2.6.16.60-0.58.1.3835.0.PTF.638363-smp
> 
> inlc7921> uname -v
> #1 SMP Wed Dec 2 12:27:56 UTC 2009
> 
> This seems a little opposite to what man page suggests. Please do take a
> look.

Thanks for the report.  However, this is turning into a FAQ; see
debbugs.gnu.org/14388 for the last discussion on the issue (we are
accurately returning what the kernel sticks in the struct used by the
uname(2) syscall; changing things would require a kernel change and not
something we can effect here; about the best we could do is a doc update
to make it clear that we really return whatever random strings the
kernel tells us even if those strings aren't "release" and "version" in
the sense you are expecting).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

Forcibly Merged 14388 16100. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Tue, 10 Dec 2013 17:19:02 GMT) Full text and rfc822 format available.

Forcibly Merged 14388 16100 16101. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Tue, 10 Dec 2013 17:21:03 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 19 Oct 2018 00:32:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 14388 <at> debbugs.gnu.org and vevek venkatesan <vevekvece <at> gmail.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 19 Oct 2018 00:32:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 16 Nov 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.