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
millert
b8b89abcad
RETURN VALUES, not RETURN VALUE
23 years ago
millert
21456efabd
Make the list of required #includes match reality.
23 years ago
aaron
426796c9a3
Plug memory leak in pw_copy(); millert@ ok
23 years ago
deraadt
431f8263a1
correct type on last arg to execl(); nordin@cse.ogi.edu
23 years ago
millert
525207ebf1
o move passwd.conf variables into login.conf
o no longer install passwd.conf (but it is used if it exists and the
needed info is not in login.conf)
o added passwordtime and minpasswordlen login.conf variables
23 years ago
deraadt
0833f36618
proto; S@mSmith.net
23 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
deraadt
8b515bb629
please alpha
24 years ago
deraadt
71a95aef09
move utmp to large format, usernames to 32 chars; downsj
24 years ago
naddy
500b3c6b5d
libutil.h -> util.h
24 years ago
millert
e6c1e8b9f9
Fix a problem introduced by the printf format sweep. Passing a NULL
pw_error() is prefectly legal but now we have to check for it explicity
(it was handled implicitly before since warn(name) would become warn(NULL)).
24 years ago
millert
fee765fb4f
MLINK check_expire.3 -> login_check_expire.3
24 years ago
millert
747d061e52
first cut at a man page for login_check_expire()
24 years ago
millert
3baeeab4e7
login_check_expire(3), a helper function for use with BSD authentication.
This lives in libutil because it uses pw_lock(3) and friends. Needs
a man page (soon!).
24 years ago
millert
2a2d694747
Add a username argument to pw_mkdb to match 'pwd_mkdb -u username'.
Crank the shlib major number due to the interface change.
24 years ago
deraadt
e0df9d23fb
shorten, now it fits in -Tps
24 years ago
aaron
4ad61ad9cf
Arguments to .Dt macros should be all-caps.
24 years ago
aaron
c10d94986f
Fix typo in NAME section; loict@bougon.net. While I'm here, capitalify the
argument to .Dt, and move the BUGS section to the end like most man pages.
This is my 1000th commit since joining the OpenBSD dev team.
24 years ago
aaron
bfdce62dd9
typo
24 years ago
provos
45cd33a8a6
close fd for pw_lck on exec, okay deraadt@
24 years ago
millert
8859c18d03
warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant). These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).
24 years ago