]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: remove custom errno string
authorJ William Piggott <elseifthen@gmx.com>
Mon, 24 Jul 2017 18:59:07 +0000 (14:59 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Mon, 31 Jul 2017 20:10:47 +0000 (16:10 -0400)
commitb3e8105837505fc9b4637b4e41cca39eecb48ebf
tree197f1e1ad7d8dc44609589bc673596d92656a758
parent0411a57e25b9554cc81ce5dc183046bbb2c25810
hwclock: remove custom errno string

Custom errno messages are unnecessary and problematic for translators.

hwclock --directisa
hwclock: iopl() port access failed: Operation not permitted
hwclock: root privileges may be required

The custom errno message is misleading. We do not know what
the system permissions are set to. The default errno string is
correct, and enough.

Patched:
hwclock --directisa
hwclock: iopl() port access failed: Operation not permitted

root@:~# hwclock --directisa -D
Using direct ISA access to the clock
2017-07-24 14:49:17.782716-0400

Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock-cmos.c
sys-utils/hwclock.h