History log of /openbsd-current/libexec/ftpd/logutmp.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.14 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.13 14-Aug-2016 guenther

When upcasting to off_t for multiplication, the cast needs to be *before*
the multiplication to avoid truncation/overflow

ok krw@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.12 25-Oct-2014 lteo

Remove unnecessary netinet/in_systm.h include.

ok millert@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.11 30-Jun-2008 ragge

Include file order must be "monitor.h" before "extern.h" otherwise enum
auth_ret is referenced before it is declared, which is not allowed by C99.

Ok krw@, millert@, gilles@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.10 27-May-2005 millert

include sys/time.h to get struct timeval


Revision tags: OPENBSD_3_7_BASE
# 1.9 28-Nov-2004 deraadt

use gettimeofday() instead of time() in functions called from signal handlers; henning ok


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.8 10-Dec-2003 deraadt

spacing


Revision tags: OPENBSD_3_4_BASE
# 1.7 07-Jul-2003 deraadt

make this match protos; millert ok


# 1.6 11-Jun-2003 deraadt

ansi cleanup; ok ian markus


# 1.5 04-Jun-2003 deraadt

fix some more UCB term 3


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.4 07-Dec-2001 mpech

kill more registers;

millert@ ok


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.3 10-Dec-1999 deraadt

indent


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.2 13-Jul-1998 millert

ftpd: sleep for an indeterminate amount for non-existant logins
to simulate a crypt, like login does.
Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.1 18-Jun-1996 downsj

my netbsd pr#2217: add utmp support to ftpd, some other small changes/fixes.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.13 14-Aug-2016 guenther

When upcasting to off_t for multiplication, the cast needs to be *before*
the multiplication to avoid truncation/overflow

ok krw@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.12 25-Oct-2014 lteo

Remove unnecessary netinet/in_systm.h include.

ok millert@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.11 30-Jun-2008 ragge

Include file order must be "monitor.h" before "extern.h" otherwise enum
auth_ret is referenced before it is declared, which is not allowed by C99.

Ok krw@, millert@, gilles@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.10 27-May-2005 millert

include sys/time.h to get struct timeval


Revision tags: OPENBSD_3_7_BASE
# 1.9 28-Nov-2004 deraadt

use gettimeofday() instead of time() in functions called from signal handlers; henning ok


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.8 10-Dec-2003 deraadt

spacing


Revision tags: OPENBSD_3_4_BASE
# 1.7 07-Jul-2003 deraadt

make this match protos; millert ok


# 1.6 11-Jun-2003 deraadt

ansi cleanup; ok ian markus


# 1.5 04-Jun-2003 deraadt

fix some more UCB term 3


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.4 07-Dec-2001 mpech

kill more registers;

millert@ ok


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.3 10-Dec-1999 deraadt

indent


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.2 13-Jul-1998 millert

ftpd: sleep for an indeterminate amount for non-existant logins
to simulate a crypt, like login does.
Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.1 18-Jun-1996 downsj

my netbsd pr#2217: add utmp support to ftpd, some other small changes/fixes.