Deleted Added
full compact
161,162c161,162
< RCSID("$FreeBSD: head/crypto/openssh/loginrec.c 128460 2004-04-20 09:46:41Z des $");
< RCSID("$Id: loginrec.c,v 1.54 2004/02/10 05:49:35 dtucker Exp $");
---
> RCSID("$Id: loginrec.c,v 1.58 2004/08/15 09:12:52 djm Exp $");
> RCSID("$FreeBSD: head/crypto/openssh/loginrec.c 137019 2004-10-28 16:11:31Z des $");
438a439,443
> #ifdef CUSTOM_SYS_AUTH_RECORD_LOGIN
> if (li->type == LTYPE_LOGIN &&
> !sys_auth_record_login(li->username,li->hostname,li->line))
> logit("Writing login record failed for %s", li->username);
> #endif
818,819c823,824
< logit("utmp_write_entry: tty not found");
< return(1);
---
> logit("%s: tty not found", __func__);
> return (0);
828c833,844
< (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
---
> off_t pos, ret;
>
> pos = (off_t)tty * sizeof(struct utmp);
> if ((ret = lseek(fd, pos, SEEK_SET)) == -1) {
> logit("%s: llseek: %s", strerror(errno));
> return (0);
> }
> if (ret != pos) {
> logit("%s: Couldn't seek to tty %s slot in %s", tty,
> UTMP_FILE);
> return (0);
> }
841c857,865
< (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
---
> if ((ret = lseek(fd, pos, SEEK_SET)) == -1) {
> logit("%s: llseek: %s", __func__, strerror(errno));
> return (0);
> }
> if (ret != pos) {
> logit("%s: Couldn't seek to tty %s slot in %s",
> __func__, tty, UTMP_FILE);
> return (0);
> }
843c867
< logit("utmp_write_direct: error writing %s: %s",
---
> logit("%s: error writing %s: %s", __func__,