]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: fix audit exit status
authorKarel Zak <kzak@redhat.com>
Thu, 27 Feb 2020 13:04:55 +0000 (14:04 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Feb 2020 13:04:55 +0000 (14:04 +0100)
commit189edf1fe501ea39b35911337eab1740888fae7a
tree8dc51dd8b11ba17ebd630a565f633598e9345065
parent1f47d4a2f0c582d2bbfeb33dc9b3b74c340dcd55
hwclock: fix audit exit status

According to audit_log_user_message(3) result 1 is "success" and 0 is
"failed", we use standard EXIT_{SUCCESS,FAILURE} macros with reverse
status.

Addresses: https://github.com/karelzak/util-linux/issues/966
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/hwclock.c