- (djm) [loginrec.c] Typo and bad args in error messages; Spotted by
Martin.Kraemer AT Fujitsu-Siemens.com
This commit is contained in:
parent
7daf044aa2
commit
b0419f26d0
|
@ -1,6 +1,8 @@
|
|||
20040823
|
||||
- (djm) [ssh-rand-helper.c] Typo. Found by
|
||||
Martin.Kraemer AT Fujitsu-Siemens.com
|
||||
- (djm) [loginrec.c] Typo and bad args in error messages; Spotted by
|
||||
Martin.Kraemer AT Fujitsu-Siemens.com
|
||||
|
||||
20040817
|
||||
- (dtucker) [regress/README.regress] Note compatibility issues with GNU head.
|
||||
|
@ -1658,4 +1660,4 @@
|
|||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||
|
||||
$Id: ChangeLog,v 1.3518 2004/08/23 11:52:08 djm Exp $
|
||||
$Id: ChangeLog,v 1.3519 2004/08/23 11:53:28 djm Exp $
|
||||
|
|
12
loginrec.c
12
loginrec.c
|
@ -158,7 +158,7 @@
|
|||
#include "log.h"
|
||||
#include "atomicio.h"
|
||||
|
||||
RCSID("$Id: loginrec.c,v 1.58 2004/08/15 09:12:52 djm Exp $");
|
||||
RCSID("$Id: loginrec.c,v 1.59 2004/08/23 11:53:28 djm Exp $");
|
||||
|
||||
#ifdef HAVE_UTIL_H
|
||||
# include <util.h>
|
||||
|
@ -832,12 +832,12 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut)
|
|||
|
||||
pos = (off_t)tty * sizeof(struct utmp);
|
||||
if ((ret = lseek(fd, pos, SEEK_SET)) == -1) {
|
||||
logit("%s: llseek: %s", strerror(errno));
|
||||
logit("%s: lseek: %s", __func__, strerror(errno));
|
||||
return (0);
|
||||
}
|
||||
if (ret != pos) {
|
||||
logit("%s: Couldn't seek to tty %s slot in %s", tty,
|
||||
UTMP_FILE);
|
||||
logit("%s: Couldn't seek to tty %d slot in %s",
|
||||
__func__, tty, UTMP_FILE);
|
||||
return (0);
|
||||
}
|
||||
/*
|
||||
|
@ -853,11 +853,11 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut)
|
|||
}
|
||||
|
||||
if ((ret = lseek(fd, pos, SEEK_SET)) == -1) {
|
||||
logit("%s: llseek: %s", __func__, strerror(errno));
|
||||
logit("%s: lseek: %s", __func__, strerror(errno));
|
||||
return (0);
|
||||
}
|
||||
if (ret != pos) {
|
||||
logit("%s: Couldn't seek to tty %s slot in %s",
|
||||
logit("%s: Couldn't seek to tty %d slot in %s",
|
||||
__func__, tty, UTMP_FILE);
|
||||
return (0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue