deraadt
876bf51192
knf
22 years ago
millert
f3a8ddc140
Throw an error if the username field is empty; noticed by mpech@
22 years ago
deraadt
d3c9af5aa3
more asprintf; millert ok
22 years ago
deraadt
8ccc7922d7
asprintf; millert ok
22 years ago
jmc
8d7d8263de
.Xr typos;
ok deraadt@
22 years ago
millert
47c7c08921
Crank all library major numbers. Needed due to the fact that we
now build libraries with propolice enabled. Without this, existing
binaries (such as ports/packages) that link with any system library
other than libc will fail with an undefined symbol of "___guard"
(__guard on ELF).
Pointed out by markus@ and discussed with deraadt@
22 years ago
millert
1670acafb5
Add HISTORY section
22 years ago
deraadt
f73c2b1c58
do not export error_table
22 years ago
millert
ca00f6f3e4
mark pw_error() __dead since it exits
22 years ago
deraadt
695e261e2d
%u for uid/gid; millert ok
22 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
fgsch
fb18813faf
some -Wall and spaces cleanup, scsi.c left.
some brave soul should look at it.
22 years ago
deraadt
1861c91a56
pid_t cleanup
22 years ago
deraadt
9f44aaa017
strlcpy at most 16 characters, so says man page
22 years ago
deraadt
5cdc7e2335
strlcpy and KNF
22 years ago
deraadt
23c67c2ee8
KNF
22 years ago
itojun
19f3ad7a81
atexit(3) can fail. handle error accordingly. deraadt ok
XXX libraries should not use atexit(3) from within, as program can terminate
with _exit.
22 years ago
mpech
bc299477ad
o) start new sentence on a new line;
o) always close .Bl tags;
o) fix usage of .Xr;
millert@ ok
23 years ago
mpech
93a232f650
Initial cleanup:
o) remove extra space in the end of line;
o) remove extra blank lines in the end of file;
o) remove .Pp before .Ss;
o) CAVEAT -> CAVEATS;
o) fix usage of .Fa;
o) <blank-line> -> .Pp;
o) wrap long lines;
millert@ ok
23 years ago
mpech
c68a3ac420
Clean up after pw_file().
millert@ ok
deraadt@ ok to commit
23 years ago
pvalchev
849e52ae81
mdoc fixes from pjanzen
23 years ago
pvalchev
8da612ea6c
rephrase warning; from miod
23 years ago
pvalchev
18eb0e3fca
print a warning that realpath points to internal static storage space that
will be overwritten by subsequent calls; suggested by pjanzen, ok millert
23 years ago
deraadt
893d09ec7a
fgsch, if you commit without test compiling ONE MORE TIME, I will send a castration team down to argentina
23 years ago
fgsch
265d2ab100
use sizeof w/ defines; niklas@ millert@ ok.
23 years ago
mpech
1d113f7a3f
login_close() should avoid memory leak.
millert@ ok
23 years ago
millert
959b08f109
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
23 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.
23 years ago
millert
1e2fd73b66
Use the volatile specifier to fix warnings about variables being
clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack.
23 years ago
mpech
a0ba08a5ce
pids should be pid_t, not int
23 years ago
deraadt
b7edc160a2
save the pid as well, and only do the atexit in the same pid
23 years ago
miod
5fff16eb20
Warn that pidfile() will not have the expected removal behaviour if _exit()
is called.
23 years ago
deraadt
a3de80a1d8
save errno in signal handler
23 years ago
mpech
c05e66058a
Start new sentence on a new line.
jakob@ ok
23 years ago
jakob
b2fc98a506
re-enable pidfile(3). ok millert@
23 years ago
matthieu
5055a367e5
zap pidfile from here too, until conflict with kerberosV is fixed ok deraadt@
23 years ago
deraadt
1e490e20b5
jakob did not even do a make build, sigh
23 years ago
jakob
e4464b9a36
add pidfile(3) prototype
23 years ago
jakob
665a8f810d
multiple calls to pidfile(3) are actually ok, but there are problems if you change the basename
23 years ago
jakob
68a4b51ff3
add pidfile(3) - write a daemon pid file. ok deraadt@, millert@.
23 years ago
deraadt
e5b3c6a8fe
oh this is horrible
23 years ago
deraadt
7f7255c5d9
make sure that va_start() has matching va_end()
23 years ago
millert
dc64978377
Change the second arg to pw_mkdb() from a boolean flag to a set of
bit flags ORed together. Currently the only flags defined are
_PASSWORD_SECUREONLY and _PASSWORD_OMITV7 but this is enough to
cause pw_mkdb() to run pwd_mkdb with the options we want.
With this change we no longer generate the old V7 passwd file when
only the extra fields in master.passwd (or the encrypted password)
have changed. There are other programs that could probably use
the _PASSWORD_OMITV7 flag; they will be converted at a future date.
23 years ago
millert
17d95e498c
2nd arg to pw_mkdb()
23 years ago
millert
b2ff13368c
consistently use #include "util.h" not <util.h> since util.h lives in this dir.
23 years ago
millert
5caca03abd
Add new 'secureonly' arg to pw_mkdb() to correspond to pwd_mkdb's new -s
flag and crank the library major due to the interface change.
23 years ago
millert
010e8fe0d7
Get rid of extraneous #includes by using stub struct declarations.
23 years ago
mpech
8038b2e506
o) We always close .Bl and .Bd tags;
o) .Sh AUTHOR -> .Sh AUTHORS;
o) We don't like .Pp before/after .Sh;
o) We don't like .Pp before/after .Rs/.Re;
o) NetBSD -> .Nx;
o) OpenBSD -> .Ox;
millert@ ok
23 years ago