NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/60810: /usr/src/sys/conf/osrelease.h -s behavior does not match description
>Number: 60810
>Category: kern
>Synopsis: /usr/src/sys/conf/osrelease.h -s behavior does not match description
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Sep 27 02:55:00 +0000 2026
>Originator: Robert Whitlock
>Release: NetBSD current, Sept 24, 2026
>Organization:
>Environment:
NetBSD thinkpad 11.99.8 NetBSD 11.99.8 (GENERIC) #0: Thu Sep 24 21:53:47 UTC 2026 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
The comments in /usr/src/sys/conf/osrelease.h describe the -s option as
# -s: return MMmmpp (no dots)
however on an 11.99.8 system this gives
thinkpad# sh osrelease.sh -s
11998
thinkpad#
but it should have output
119908
>How-To-Repeat:
See above.
>Fix:
Either change the code to make 119908 or fix the comment specifying its behavior. I would think that the purpose of putting the version into a number would be so that you could compare two different versions with less than or greater than signs, which would siggest that the correct fix would be to change the code to make it print 119908.
Home |
Main Index |
Thread Index |
Old Index