893
896
if ((ret = lseek(fd, pos, SEEK_SET)) == -1) {
894
897
logit("%s: lseek: %s", __func__, strerror(errno));
898
902
logit("%s: Couldn't seek to tty %d slot in %s",
899
903
__func__, tty, UTMP_FILE);
902
907
if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) {
903
908
logit("%s: error writing %s: %s", __func__,
904
909
UTMP_FILE, strerror(errno));