OSDN Git Service

Fix hwclock -w.
authorElliott Hughes <enh@google.com>
Fri, 10 Jul 2015 05:57:22 +0000 (00:57 -0500)
committerRob Landley <rob@landley.net>
Fri, 10 Jul 2015 05:57:22 +0000 (00:57 -0500)
commitfd4b56a159b9080a329d4471313d636f2b292ad5
tree26dfc07f93e06898a83960fb4049331daf346b03
parent666b89d8c829b2f1d0301f78208b772645942e23
Fix hwclock -w.

The gmtime_r/localtime_r error check was backwards, and the wrong argument
was being passed to the RTC_SET_TIME ioctl.

Also, the error reporting was misleading (showing errno for functions that
don't set errno) and too vague for the user to tell what failed.
toys/pending/hwclock.c