Commit Graph

251 Commits

Author SHA1 Message Date
Todd C. Miller
38b6d5f1df added params to func decls when STDC_HEADERS is not defined 1994-08-08 04:06:48 +00:00
Todd C. Miller
7b0e8546fb now use sudo_setenvc 1994-08-06 23:19:12 +00:00
Todd C. Miller
ee50a4661e not set ret to MODE_RUN initially 1994-08-05 20:14:59 +00:00
Todd C. Miller
70333883c0 usage() now takes an int (exit value)
added parse_args() to parse command line arguments
moved call to find_path() from load_globals to new function load_cmnd()
removed validate_only global -- now use the concept of "modes"
added -h and -k options
1994-08-05 00:22:15 +00:00
Todd C. Miller
8161d52f34 now set SUDO_ envariables 1994-08-03 02:41:55 +00:00
Todd C. Miller
2624e7ee72 be_root/be_user is now down in sudo_realpath() 1994-07-25 22:32:30 +00:00
Todd C. Miller
e7bf4f9fe0 added tzset() to load_globals
added epasswd (encrypted password) global
made user dynamically allocated
1994-07-14 21:43:58 +00:00
Todd C. Miller
0148bcaf6b use __hpux not hpux 1994-07-07 00:08:14 +00:00
Todd C. Miller
a5c4f697d2 always use getcwd 1994-06-04 19:29:49 +00:00
Todd C. Miller
9e79c34b9b no need to strdup() a constant 1994-06-02 21:49:11 +00:00
Todd C. Miller
48b8a66dc6 added -v to usage 1994-06-02 19:42:08 +00:00
Todd C. Miller
71cba15592 added validate_only stuff 1994-06-02 19:41:33 +00:00
Todd C. Miller
a298a5dc48 now use the EXEC nmacro
now only do a gethostbyname() if FQDN is set
1994-05-29 22:36:44 +00:00
Todd C. Miller
ebae58f1ea added prototypes 1994-05-28 19:13:27 +00:00
Todd C. Miller
48f3cb6734 cast Argv to a const for exec
added -v flag
1994-05-25 03:08:10 +00:00
Todd C. Miller
0d0f470073 ok, the getcwd() is now *really* done as the user 1994-05-24 21:44:50 +00:00
Todd C. Miller
3e94c6f257 moved getcwd stuff into load_globals 1994-05-24 20:18:41 +00:00
Todd C. Miller
92c371d0fb support for HAVE_SYSCONF 1994-05-24 16:03:26 +00:00
Todd C. Miller
eba1660358 uid seinitialized to -2 1994-05-14 21:27:05 +00:00
Todd C. Miller
4624211f85 now removes LIBPATH for AIX 1994-04-28 16:36:16 +00:00
Todd C. Miller
6a83afd8e2 udpated version 1994-03-12 18:55:39 +00:00
Todd C. Miller
1ed1db9cf3 updated to work with configure + pathnames.h 1994-03-12 18:36:53 +00:00
Todd C. Miller
eea6d47b7f execve -> execv 1994-02-28 05:27:51 +00:00
Todd C. Miller
f96b43c292 added UMASK 1994-02-28 04:11:33 +00:00
Todd C. Miller
f767453fd8 added rmenv() to remove stuff from environ. can now uses execvp()
OR execve() becuase of this.
1994-02-16 18:35:52 +00:00
Todd C. Miller
de6ad83aeb added SECURE_PATH 1994-02-10 19:30:00 +00:00
Todd C. Miller
e52637f9a6 took out SAVED_UID garbage since it don't work 1994-02-08 18:21:33 +00:00
Todd C. Miller
4928e8b997 took out multimax cruft 1994-02-06 00:48:23 +00:00
Todd C. Miller
273de60031 fixed a typo + indentation 1994-02-06 00:19:45 +00:00
Todd C. Miller
4d7ae0eb28 put back AIX cruft 1994-02-05 20:16:36 +00:00
Todd C. Miller
9195775b94 aix changes 1994-02-03 05:44:46 +00:00
Todd C. Miller
6419115045 now is only root when abs necesary 1994-02-02 06:30:34 +00:00
Todd C. Miller
b4638d4550 now removed _RLD_* for alphas 1994-01-31 06:56:01 +00:00
Todd C. Miller
9fe5184668 took out setuid(0) and setreuid(udi) garbage. Its not needed since
we start out setuid with the correct perms.
1994-01-27 18:19:28 +00:00
Todd C. Miller
5b566c24c6 now use setreuid() 1994-01-27 00:52:18 +00:00
Todd C. Miller
3424e2f974 fixed warning (include strings.h) 1993-12-03 03:19:31 +00:00
Todd C. Miller
62ea70cb3a added patches from John_Rouillard
directory spec
	uses EDITOR
1993-12-03 02:35:16 +00:00
Todd C. Miller
70ba02c3c8 no longer assume malloc returns a char * 1993-11-30 18:37:37 +00:00
Todd C. Miller
d4eee981ff alpha change to remove LD_-like thing
fixed SHLIB_PATH stuff -- now gets removed correctly
1993-11-30 01:35:20 +00:00
Todd C. Miller
68154bdc5c now uses STD_HEADERS macor for ansi 1993-11-30 00:14:19 +00:00
Todd C. Miller
594284b224 updated version number and took out jeff's email (since it is invalid) 1993-11-27 23:42:49 +00:00
Todd C. Miller
5c4b258d24 hpux 9 fix, removes SHLIB_PATH
linux patch
1993-10-18 00:30:35 +00:00
Todd C. Miller
11dfd7ef4b now declare strdup as extern 1993-10-06 01:48:53 +00:00
Todd C. Miller
e75a6d3b54 used indent to "fix" coding style 1993-10-04 19:10:33 +00:00
Todd C. Miller
5ae9d330e1 fixed off by one error 1993-09-05 14:02:14 +00:00
Todd C. Miller
f00b6795c7 now actually builds Envp instead of munging envp 1993-09-05 12:35:37 +00:00
Todd C. Miller
d7391584e7 now rips LD_* env vars out of envp and passed sanitized Envp to exec 1993-09-04 18:09:35 +00:00
Todd C. Miller
3a96124e85 moved around the #ifndef _AIX 1993-06-11 22:04:22 +00:00
Todd C. Miller
b7d12de748 took out errno.h 1993-02-16 18:24:05 +00:00
Todd C. Miller
852d937152 now spews error if exec fails and exits with -1 1993-02-16 18:22:52 +00:00