Todd C. Miller
ba61aad4a4
elinated compiler warning
1995-03-26 02:56:35 +00:00
Todd C. Miller
37aafbf098
added void casts for printf's
1995-03-24 19:18:09 +00:00
Todd C. Miller
b9f7c72dd8
changed setegid -> setgid
1995-02-17 04:31:06 +00:00
Todd C. Miller
ee8a3a4402
added ocmnd declaration
...
adjusted for find_path()'s new parameters
1995-01-16 21:36:02 +00:00
Todd C. Miller
5318438a04
move the include of id.h to compat.h
...
now includes options.h
1995-01-13 17:46:21 +00:00
Todd C. Miller
be3b8f8067
added mips & isc support
1994-11-10 00:49:53 +00:00
Todd C. Miller
8dc58160a8
be_* -> setperms()
...
now check to make sure sudoers file is owned by root nread/write by only
root
1994-11-08 01:38:57 +00:00
Todd C. Miller
efdad527cc
now sets IFS
1994-10-21 17:16:33 +00:00
Todd C. Miller
6b069fabe7
now bail if ARgv[1] > MAXPATHLEN
1994-10-04 16:56:40 +00:00
Todd C. Miller
410f21dd76
added code for -l flag
1994-09-20 21:36:32 +00:00
Todd C. Miller
525954e1b2
changed sudo-bugs.cs.colorado.edu -> sudo-bugs@cs.colorado.ed
1994-09-02 19:54:28 +00:00
Todd C. Miller
5d04e3eafb
added set_auth_parameters for osf
1994-09-01 17:38:55 +00:00
Todd C. Miller
4c19411fc6
changed setenv() to sudo_setenv()
1994-09-01 17:15:07 +00:00
Todd C. Miller
6174554533
use sizeof instead of a constant in 1 place
1994-08-30 22:30:17 +00:00
Todd C. Miller
23c2416e0a
added sys/time.h for AIX
1994-08-16 19:46:08 +00:00
Todd C. Miller
98ca6de0d0
now include sockio.h instead of ioctl.h if it exists
...
"sudo -" now gets a better error message
1994-08-15 01:21:02 +00:00
Todd C. Miller
51ebc0b2bf
removed if_ether.h
1994-08-13 22:15:43 +00:00
Todd C. Miller
20f8b1911a
no error if can't get interfaces or netmask since networking may not be in
...
the kernel.
1994-08-13 21:09:05 +00:00
Todd C. Miller
6e337ed509
now do two passes to skip bogus interfaces (lo0, etc)
1994-08-12 03:42:27 +00:00
Todd C. Miller
669ecb8a29
now ip addresses are gleaned fw/o dns
1994-08-12 01:56:22 +00:00
Todd C. Miller
49673e12cb
added load_ip_addrs() to load the ip_addrs global var
1994-08-10 23:21:47 +00:00
Todd C. Miller
880ca64066
can't use getopt(3) since it munges args to the command to be run as root
...
don't do malloc decl if gnuc
1994-08-08 17:04:19 +00:00
Todd C. Miller
e54f35e718
ansi-fied !STDC_HEADER function prottypes
1994-08-08 04:41:20 +00:00
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