Commit Graph

3826 Commits

Author SHA1 Message Date
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
Todd C. Miller
b980f95883 silence a warning on K&R systems 2005-03-10 14:55:12 +00:00
Todd C. Miller
40b899b10c make this build in K&R land 2005-03-10 14:53:04 +00:00
Todd C. Miller
f35ff3e327 make this build in K&R land 2005-03-10 14:51:48 +00:00
Todd C. Miller
5e060faa34 regen 2005-03-08 03:21:28 +00:00
Todd C. Miller
ddb8c3d7df return(foo) not return foo
optimize _atobool() slightly
2005-03-06 03:46:52 +00:00
Todd C. Miller
474768bd5f Use TRUE/FALSE 2005-03-06 03:40:18 +00:00
Todd C. Miller
3154a75b8e Reformat to match the rest of sudo's code. 2005-03-06 03:31:58 +00:00
Todd C. Miller
abc10fd9a6 I am the primary author 2005-03-06 00:33:18 +00:00
Todd C. Miller
b5e92527cc The RUNSON file is toast--it confused too many people and really isn't
needed in a configure-oriented world.
2005-02-23 03:29:40 +00:00
Todd C. Miller
33d0e51281 alternate -> alternative 2005-02-23 03:28:13 +00:00
Todd C. Miller
7facbeeed7 Use TCSADRAIN instead of TCSAFLUSH since some OSes have issues with TCSAFLUSH. 2005-02-23 03:26:50 +00:00
Todd C. Miller
470a4b549d Allow leading blanks before Defaults and Foo_Alias definitions 2005-02-23 03:16:06 +00:00
Todd C. Miller
444b6fbf8e fix rules to build toke.o and gram.o in devel mode 2005-02-23 03:14:03 +00:00
Todd C. Miller
9805bdd7f6 env_keep overrides set_logname 2005-02-20 18:00:24 +00:00
Todd C. Miller
2791a18078 Fix disabling set_logname and make env_keep override set_logname. 2005-02-20 17:57:48 +00:00
Todd C. Miller
c2f6b93ada No longer need memmove() 2005-02-20 17:28:25 +00:00
Todd C. Miller
6bee8e3770 Just clean the environment once. This assumes that any further
setenv/putenv will be able to handle the fact that we replaced environ
with our own malloc'd copy but all the implementations I've checked do.
2005-02-20 16:48:05 +00:00
Todd C. Miller
87a8b5b48b In -i mode, base the value of insert_env()'s dupcheck flag on DID_FOO flags.
Move checks for $HOME resetting into rebuild_env()
2005-02-16 04:16:22 +00:00
Todd C. Miller
74894ebf62 Move setting of user_path, user_shell, user_prompt and prev_user
into init_vars() since user_shell at least is needed there.
2005-02-13 05:33:59 +00:00
Todd C. Miller
e2a517d88d fix devel builds 2005-02-12 23:51:43 +00:00
Todd C. Miller
b7068a4138 Fix some printf format mismatches on error. 2005-02-12 23:48:46 +00:00
Todd C. Miller
cc84c41fbe Fix some printf format mismatches on error. 2005-02-12 23:46:13 +00:00
Todd C. Miller
889a0334e6 regen 2005-02-12 23:33:30 +00:00
Todd C. Miller
778d587063 Update copyright years. 2005-02-12 22:56:07 +00:00
Todd C. Miller
fd0c93bbeb Update copyright years. 2005-02-12 22:56:06 +00:00
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