Commit Graph

10 Commits

Author SHA1 Message Date
Todd C. Miller
304dc46d7f Add efree() for consistency with emalloc() et al. Allows us to rely
on C89 behavior (free(NULL) is valid) even on K&R.
2005-03-29 14:29:47 +00:00
Todd C. Miller
f78ce55170 Sync sudo_pwdup with OpenBSD changes: use macros for size computaton and
string copies.
2005-03-25 17:36:52 +00:00
Todd C. Miller
ca7c435740 Zero old pw_passwd before replacing with version from shadow file. 2005-03-19 03:08:40 +00:00
Todd C. Miller
bb63e0168d Missed piece from rev. 1.6, fix sudo_getpwnam() too. 2005-03-12 17:27:27 +00:00
Todd C. Miller
0ea568c7de Store shadow password after making a local copy of struct passwd in
case normal and shadow routines use the same internal buffer in libc.
2005-03-12 04:42:30 +00:00
Todd C. Miller
543fe6e7d6 Don't try to destroy a tree we didn't create. 2005-02-01 04:03:29 +00:00
Todd C. Miller
3b8b88407f Add __unused to rcsids 2005-01-27 15:42:30 +00:00
Todd C. Miller
7ca844890d Use function pointers to only call private passwd/group routines when
using a nonstandard passwd/group file.
2005-01-09 23:58:21 +00:00
Todd C. Miller
308b6fa118 Move all but the shadow stuff from getspwuid.c to pwutil.c and pwcache_get
and pwcache_put as they are no longer needed.  Also add preprocessor
magic to use private versions of the passwd and group routines if MYPW
is defined (for use by testsudoers).
2005-01-05 19:41:31 +00:00
Todd C. Miller
282c0bf361 Split off pw/gr cache and dup code into its own file.
This allows visudo and testsudoers to use the pw/gr cache too.
2005-01-05 01:07:33 +00:00