Todd C. Miller
f02f4b428f
Update copyright years.
2005-02-12 22:56:06 +00:00
Todd C. Miller
cd6a11b814
version 1.7
2005-02-12 21:46:11 +00:00
Todd C. Miller
93cc79642d
What's new in sudo 1.7, based on the 1.7 CHANGES entries.
2005-02-12 21:16:34 +00:00
Todd C. Miller
b3b65fb7fc
Add __printflike and use it with gcc to warn about printf-like format mismatches
2005-02-11 23:06:35 +00:00
Todd C. Miller
8d74dc1def
Replaced CHANGES file with ChangeLog generated from cvs logs
2005-02-10 05:16:03 +00:00
Todd C. Miller
31968c368b
Use warning/error instead of perror/fatal.
2005-02-10 05:03:58 +00:00
Todd C. Miller
2b48e0dc43
Update OpenBSD section
2005-02-10 04:13:26 +00:00
Todd C. Miller
a50e709a3d
Add upgrading noted for 1.7
2005-02-10 04:10:29 +00:00
Todd C. Miller
ab2e7bc267
Instead of zeroing out the environment, just prune out entries
...
based on the env_delete and env_check lists. Base building up
the new environment on the current environment and the variables
we removed initially.
2005-02-10 04:00:04 +00:00
Todd C. Miller
0b315c10d0
Set locale to "C" if locales are supported, just to be safe.
2005-02-10 03:24:00 +00:00
Todd C. Miller
ab2439a44a
Cast argument to ctype functions to unsigned char.
2005-02-10 03:19:10 +00:00
Todd C. Miller
f015a51b9b
correct value for DID_USER
2005-02-08 03:56:51 +00:00
Todd C. Miller
b950f28075
#include <compat.h> not "compat.h"
2005-02-08 03:55:42 +00:00
Todd C. Miller
2805405217
Reset the environment by default.
2005-02-08 03:51:27 +00:00
Todd C. Miller
d27f06b5f1
Alloc an extra slot in NewArgv. Removes the need to malloc an new
...
vector if execve() fails.
2005-02-08 03:50:42 +00:00
Todd C. Miller
9a890467a7
Use execve(2) and wrap the command in sh if we get ENOEXEC.
2005-02-07 04:16:28 +00:00
Todd C. Miller
cea03b5e8f
Only include time.h on systems that lack struct timespec which
...
gets defind in compat.h (using time_t).
2005-02-06 04:01:33 +00:00
Todd C. Miller
90d2f5f50b
Include time.h for time_t in compat.h for systems w/o struct timespec.
2005-02-06 03:59:38 +00:00
Todd C. Miller
f780611c33
use bcopy on systems w/o memmove
2005-02-06 03:56:38 +00:00
Todd C. Miller
8f0c64f677
__attribute__((__unused__)) doesn't work in gcc 2.7.2.1 so limit its
...
use to gcc >= 2.8.
2005-02-06 03:31:53 +00:00
Todd C. Miller
550e8f5a50
Add explicit rule to build sudo_noexec.lo
2005-02-06 02:21:18 +00:00
Todd C. Miller
c20f64d2f1
No longer depend on VPATH; pointed out a bunch of missed dependencies.
2005-02-05 22:56:20 +00:00
Todd C. Miller
b2f7e61ff3
Help for PAM when account section is missing
2005-02-05 18:18:20 +00:00
Todd C. Miller
6548e82f20
Give user a clue when there is a missing "account" section in the PAM config.
2005-02-05 18:01:55 +00:00
Todd C. Miller
e6f51aa1af
Better error handling.
2005-02-05 15:22:46 +00:00
Todd C. Miller
e166c1b11d
Move _FOO_SOURCE to CPPFLAGS so it takes effect as early as possible.
...
Silences a warning about isblank() on linux.
2005-02-05 14:57:44 +00:00
Todd C. Miller
f7adbaddce
Fix typo (missing comma) that caused an incorrect number of args
...
to be passed to log_error().
2005-02-05 02:49:53 +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
c2dad169fe
Fix error message when mixing invalid auth types
2005-01-21 15:34:07 +00:00
Todd C. Miller
f751d934dd
PAM, AIX auth, BSD auth and login_cap are now on by default if the OS
...
supports them.
2005-01-21 15:32:20 +00:00
Todd C. Miller
2dc559bf3e
s/HAVE_AUTHENTICATE/HAVE_AIXAUTH/g
2005-01-21 15:29:55 +00:00
Todd C. Miller
609a615f8a
Better checking for conflicting authentication methods
...
Display the authentication methods used at the end of configure
Rename --with-authenticate -> --with-aixauth
Use --with-aixauth, --with-bsdauth, --with-pam, --with-logincap by
default on systems that support them unless disabled.
Add OSMAJOR variable that replaces old OSREV; now OSREV has full version number
2005-01-21 15:29:05 +00:00
Todd C. Miller
840d51a160
s/-O/-C/
2005-01-18 00:41:31 +00:00
Todd C. Miller
2e8e963460
Replace:
...
test -n "$FOO" || FOO="bar"
With:
: ${FOO='bar'}
2005-01-14 18:35:06 +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
e7f2e2a190
sync
2005-01-06 15:34:20 +00:00
Todd C. Miller
b8c4e2770d
Can't use strtok() since it doesn't handle empty fields so add
...
getpwent()/getgrent() functions and call those.
2005-01-06 03:16:11 +00:00
Todd C. Miller
2fd0f3d4ce
Fix dummied out toke.c and gram.c dependencies.
2005-01-05 22:29:06 +00:00
Todd C. Miller
ba001795e8
Rename PARSESRCS -> GENERATED since it is only used in the clean target
...
Add devdir variable and use it to specify the path to parser sources
2005-01-05 22:18:42 +00:00
Todd C. Miller
031a3ef556
regen
2005-01-05 22:17:52 +00:00
Todd C. Miller
1fb59a25ca
Add a devdir variables that defaults to $(srcdir) and is set to . if
...
--devel was specified. Allows for proper dependecies building the parser.
2005-01-05 22:17:33 +00:00
Todd C. Miller
5e475c85b3
Add support for custom passwd/group files.
2005-01-05 19:50:49 +00:00
Todd C. Miller
66773d1b6a
Build private copy of pwutil.o for testsudoers with MYPW defined so
...
it uses our own passwd/group routines.
2005-01-05 19:47:20 +00:00
Todd C. Miller
0ab0ad2441
Remove sudo_*{pw,gr}* stubs and add sudo_setspent/sudo_endspent stubs instead.
...
We can now just use the caching sudo_*{pw,gr}* functions in pwutil.c
Add comment about wanting to call sudo_endpwent/sudo_endgrent in cleanup()
2005-01-05 19:46:39 +00:00
Todd C. Miller
13cc087799
Remove caching; we will just use what is in pwutil.c
...
Use global buffers for passwd/group structs
Rename functions from sudo_* to my_*
2005-01-05 19:44:58 +00:00
Todd C. Miller
dfccf19338
g/c pwcache_init/pwcache_destroy
2005-01-05 19:43:36 +00:00
Todd C. Miller
54db5e40b1
Undo last commit and add sudo_setspent and sudo_endspent instead.
2005-01-05 19:42:06 +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
516ff29770
zero out struct passwd/group before filling it in so if there are
...
fields we don't handle they end up as 0.
2005-01-05 03:40:01 +00:00