Todd C. Miller
c8f360fd5f
typo
2005-06-25 18:45:09 +00:00
Todd C. Miller
1ddff11130
Add dragonfly
2005-06-25 18:33:01 +00:00
Todd C. Miller
d281ff77e2
Fix call to pam_end() when pam_open_session() fails.
2005-06-25 18:29:17 +00:00
Todd C. Miller
94ab741824
regen
2005-06-25 18:21:09 +00:00
Todd C. Miller
a2c0309301
rebuild acsite.m4 from libtool 1.9f libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4
2005-06-25 18:20:43 +00:00
Todd C. Miller
f8b3770bee
merge in local changes:
...
config.guess:
o better openbsd support
config.sub:
o hiuxmpp support
ltmain.sh
o remove requirement that libs must begin with "lib"
o don't print a bunch of crap about library installs
o don't run ldconfig
2005-06-25 18:08:10 +00:00
Todd C. Miller
37d8f4ee91
libtool 1.9f
2005-06-25 18:05:44 +00:00
Todd C. Miller
95b9648ba8
Update with autoupdate and make minor changes for libtool 1.9f
2005-06-25 18:04:30 +00:00
Todd C. Miller
98931e0f8f
don't call sudo_ldap_display_cmnd if ldap not setup
2005-06-23 03:19:00 +00:00
Todd C. Miller
2566e6b7d8
Move declatation of struct timespec to its own include files for
...
systems without it since it needs time_t defined.
2005-06-23 03:04:35 +00:00
Todd C. Miller
46230280c8
Move declatation of struct timespec to its own include files for
...
systems without it since it needs time_t defined.
2005-06-23 03:04:35 +00:00
Todd C. Miller
6cbaca026f
Move declatation of struct timespec to its own include files for
...
systems without it since it needs time_t defined.
2005-06-23 03:04:35 +00:00
Todd C. Miller
ad5c04c904
Move declatation of struct timespec to its own include files for
...
systems without it since it needs time_t defined.
2005-06-23 03:04:35 +00:00
Todd C. Miller
3bb5c181b0
Move declatation of struct timespec to its own include files for
...
systems without it since it needs time_t defined.
2005-06-23 03:04:35 +00:00
Todd C. Miller
9800e99ffc
Don't set safe_cmnd for the "sudo ALL" case.
2005-06-23 02:57:18 +00:00
Todd C. Miller
d3b45ae3f1
Call pam_open_session() and pam_close_session() to give pam_limits a
...
chance to run. Idea from Karel Zak.
2005-05-27 05:59:02 +00:00
Todd C. Miller
c7ea24f2cc
Add explicit cast from mode_t -> u_int in printf to silence warnings on Solaris
2005-04-24 23:24:58 +00:00
Todd C. Miller
7ce5994d6c
include grp.h to silence a warning on Solaris
2005-04-24 23:22:19 +00:00
Todd C. Miller
f1a0953085
Fix printing of += and -= defaults.
2005-04-23 19:10:16 +00:00
Todd C. Miller
56d72a3b81
Sanity check number of syscall args with argsize. Not really needed
...
but a little paranoia never hurts.
2005-04-17 05:21:24 +00:00
Todd C. Miller
95c47e7f3b
Don't do pointer arithmetic on void *
...
Use int, not size_t/ssize_t for systrace lengths (since it uses int)
2005-04-17 05:18:24 +00:00
Todd C. Miller
fe9b653085
Add some memsets for paranoia
...
Fix namespace collsion w/ error
Check rval of decode_args() and update_env()
Remove improper setting of validated variable
2005-04-16 07:14:34 +00:00
Todd C. Miller
f261a99f22
In -l mode, only check local sudoers file if def_ignore_sudoers is not set
...
and call LDAP versions from display_privs() and display_cmnd() instead
of directly from main(). Because of this we need to defer closing
the ldap connection until after -l processing has ocurred and we
must pass in the ldap pointer to display_privs() and display_cmnd().
2005-04-12 01:37:08 +00:00
Todd C. Miller
fe4f33ab94
Reorganize LDAP code to better match normal sudoers parsing. Instead
...
of storing strings for later printing in -l mode we do another query
since the authenticating user and the user being listed may not be
the same (the new -U flag). Also add support for "sudo -l command".
There is still a fair bit if duplicated code that can probably
be refactored.
2005-04-12 01:33:23 +00:00
Todd C. Miller
b8cbf50a38
Replace pass variable with do_netgr for better readability.
2005-04-11 04:37:49 +00:00
Todd C. Miller
3f84e1b18d
use DPRINTF macro
2005-04-11 03:49:46 +00:00
Todd C. Miller
f1d67a9b34
estrdup, not strdup
2005-04-11 03:18:38 +00:00
Todd C. Miller
d0df82a93a
Add macro to test if the tag changed to improve readability.
2005-04-10 21:44:27 +00:00
Todd C. Miller
ce7708e09a
Avoid printing defaults header if there are no defaults to print...
2005-04-10 21:40:41 +00:00
Todd C. Miller
132a799457
Fix a warning on systems without strlcpy().
2005-04-10 19:29:45 +00:00
Todd C. Miller
06a11acf14
Use macros where possible for sudo_grdup() like sudo_pwdup().
2005-04-10 17:32:42 +00:00
Todd C. Miller
f057686d20
It is possible for tv_usec to hold >= 1000000 usecs so add in tv_usec / 1000000.
2005-04-08 21:04:22 +00:00
Todd C. Miller
d857334e61
The component in krb5_principal_get_comp_string() should be 1, not 0
...
for Heimdal. From Alex Plotnick.
2005-03-30 04:38:25 +00:00
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
9efe91fa1e
Move initgroups() for -U option into display_privs() so group matching
...
in sudoers works correctly.
2005-03-29 03:33:05 +00:00
Todd C. Miller
e3c99d9c84
Removed duplicate call to ldap_unbind_s introduced along with sudo_ldap_close.
2005-03-27 02:34:25 +00:00
Todd C. Miller
61413ca509
Add missing space in Defaults printing
2005-03-27 01:01:02 +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
6666ca23d4
Only attempt shadow password detection if PAM is not being used
...
Add shadow_* variables to make shadow password detection more generic.
2005-03-19 03:07:27 +00:00
Todd C. Miller
0a795b83dd
Use OSDEFS for os-specific -D_FOO_BAR stuff rather than CPPFLAGS
2005-03-19 02:46:16 +00:00
Todd C. Miller
244eae916f
use a non-breaking space to avoid a double space after e.g.
2005-03-13 00:27:05 +00:00
Todd C. Miller
963ca5045d
commna, not colon after e.g.
2005-03-13 00:26:33 +00:00
Todd C. Miller
00bea5e742
Add __ variants of the exec functions. GNU libc at least uses __execve()
...
internally.
2005-03-12 23:43:40 +00:00
Todd C. Miller
5a7ab7e637
Match reality a bit more.
2005-03-12 17:29:00 +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
e7dcda7920
Make varargs usage consistent with the rest of the code.
2005-03-11 01:57:44 +00:00
Todd C. Miller
7362b7e981
Wrap more of the exec family since on Linux the others do not appear
...
to go through the normal execve() path.
2005-03-10 15:09:28 +00:00
Todd C. Miller
d4b7457596
make print_unused static like proto says
2005-03-10 14:57:17 +00:00