diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-11 22:04:09 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-13 03:30:26 -0400 |
commit | 27d410ab748905a21204f5a5749c175df4e4d988 (patch) | |
tree | 488011357b7b9f46008f159d7ac8068b5083ca2c | |
parent | a789a2d36560f64952dcfc25d330f1ac04206c14 (diff) |
usr: date: Read back date after writing
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | usr.bin/date/date.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/date/date.c b/usr.bin/date/date.c index ab26c4c..8c4a9d1 100644 --- a/usr.bin/date/date.c +++ b/usr.bin/date/date.c @@ -107,6 +107,7 @@ main(int argc, char **argv) error = set_time(rtc_fd, &d, argv[1]); if (error < 0) printf("bad time specified, not set\n"); + read(rtc_fd, &d, sizeof(d)); } close(rtc_fd); |