Today's CVS trouble (HP-UX 10.20)

Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE
Wed Sep 26 01:47:46 EST 2001


On Tue, Sep 25, 2001 at 03:18:48PM +0200, Lutz Jaenicke wrote:
> That was also my impression. I had a look into loginrec.c and could not
> see any particular reason.
>         while (!found) {
>                 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) {
>                         log("wtmp_get_entry: read of %s failed: %s",
>                             WTMP_FILE, strerror(errno));
>                         close (fd);
>                         return 0;
>                 }
> The log entry "No such device or address" does not make sense in this
> context. The conclusion would be, that the condition
>   (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut))
> is true, but it was not an error that occured. Does this mean, that
> the of bytes read from wtmp was not sizeof(ut)?

Following up to myself: with some instrumenting, atomicio does return 0:
Sep 25 17:41:29 ws01 sshd[24763]: wtmp_get_entry: read of /var/adm/wtmp failed: Bad file number, result=0 (sizeof(ut)=60, fd=3)

Don't know (yet?) what this means, however :-)
	Lutz
-- 
Lutz Jaenicke                             Lutz.Jaenicke at aet.TU-Cottbus.DE
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153



More information about the openssh-unix-dev mailing list