NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/56387: Wrong uptime output: returns all but the uptime
>Number: 56387
>Category: bin
>Synopsis: Wrong uptime output: returns all but the uptime
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 03 17:35:00 +0000 2021
>Originator: Roman Danilov
>Release: 9.2
>Organization:
>Environment:
NetBSD inw-vm039.i-hn.loc 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
If run uptime command, I get all, but the uptime:
inw-vm039$ uptime
8:08PM 1 user, load averages: 0.00, 0.00, 0.00
On my regular user:
inw-vm039$ echo $SHELL
/bin/ksh
inw-vm039$ which uptime
/usr/bin/uptime
inw-vm039$
On my superuser:
inw-vm039$ su -
Password:
inw-vm039# echo $SHELL
/bin/sh
inw-vm039# which uptime
/usr/bin/uptime
In both environments, bug is reproducing.
In the /proc filesystem, uptime is readable on both of users:
inw-vm039# cat /proc/uptime
1065.82 1041.66
inw-vm039# exit
inw-vm039$ cat /proc/uptime
1095.38 1073.78
>How-To-Repeat:
1.Login to your shell
2. Run 'uptime' command
>Fix:
Home |
Main Index |
Thread Index |
Old Index