summaryrefslogtreecommitdiff
path: root/usr.bin/date
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-11 22:04:09 -0400
committerIan Moffett <ian@osmora.org>2025-07-13 03:30:26 -0400
commit27d410ab748905a21204f5a5749c175df4e4d988 (patch)
tree488011357b7b9f46008f159d7ac8068b5083ca2c /usr.bin/date
parenta789a2d36560f64952dcfc25d330f1ac04206c14 (diff)
usr: date: Read back date after writing
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/date')
-rw-r--r--usr.bin/date/date.c1
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);