diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/date/date.c | 1 | ||||
-rw-r--r-- | usr.bin/login/login.c | 1 |
2 files changed, 1 insertions, 1 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); diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index e9b5e88..93b08ed 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -254,7 +254,6 @@ getuser(FILE *fp) while (fgets(entry, sizeof(entry), fp) != NULL) { retval = check_user(alias, pwhash, entry); if (retval == 0) { - printf("login: successful\n"); free(alias); return 0; } |