commit | fd4b56a159b9080a329d4471313d636f2b292ad5 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Jul 10 00:57:22 2015 -0500 |
committer | Rob Landley <rob@landley.net> | Fri Jul 10 00:57:22 2015 -0500 |
tree | 26dfc07f93e06898a83960fb4049331daf346b03 | |
parent | 666b89d8c829b2f1d0301f78208b772645942e23 [diff] |
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.