mmcc
e95c7e3634
Remove three NULL-checks before free(). ok millert@
8 years ago
deraadt
c2feb81bea
remove cast of malloc(), since stdlib.h is included
8 years ago
deraadt
68e05a5470
comment inside comment
17 years ago
deraadt
937e47b3dc
change internal login_protect() API to use mode_t like it should
18 years ago
deraadt
2245b99438
avoid aliasing over library symbol
20 years ago
millert
b013f0d14d
Now that we don't have a trailing newline we need to explicitly check
that the first char in the line is not NUL after killing comments.
22 years ago
millert
6cea6780f6
Use strtok_r() instead of strsep() since the latter treats consecutive
field separators as empty field. This is not what we want for
whitespace-delimited fields.
22 years ago
millert
fab5e38f3f
login_fbtab(3) fixes:
o make first arg const since we don't modify it
o use strsep() instead of strtok() as strtok() changes internal state
o add some bounds checking and use strlcat() instead of pointer arithmetic
o ANSI function headers
Originally based on a patch from Lars J. Buitinck but much modified.
22 years ago
millert
b68c09e067
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
22 years ago
deraadt
1f3159836c
new license from Wietse; permits modification. This code is derived from
logdaemon, so this applies:
ftp://ftp.porcupine.org/pub/security/logdaemon_license
23 years ago
csapuntz
15f3825602
Add opendisk from NetBSD.
25 years ago
millert
5a3995eac2
Use _PATH_DEV, not "/dev/"
Make init(8) call login_fbtab() correctly.
26 years ago
millert
8e693f1039
-Wall
27 years ago
tholo
89660a21d8
Bring prototypes into scope
28 years ago
deraadt
1be84dab0b
duh, theo
28 years ago
deraadt
aca561bb49
login_fbtab() in libutil
28 years ago