Todd C. Miller
d3e338f2fa
validate() now takes a flag
...
added -l
1995-06-14 08:43:13 +00:00
Todd C. Miller
337897e2d8
added prompt support
...
reworked parse_args()
1995-06-08 01:27:08 +00:00
Todd C. Miller
c60704dcce
added -b option
1995-06-03 23:34:06 +00:00
Todd C. Miller
a2ec4c76dd
getcwd() -> getwd()
1995-05-08 03:13:42 +00:00
Todd C. Miller
aaa41e678c
moved load_interfaces to interfaces.c
1995-05-02 03:33:38 +00:00
Todd C. Miller
e991fcfa70
now remove IFS instead of setting to "sane" value
1995-05-02 02:47:33 +00:00
Todd C. Miller
431c0a7e5e
added Andy's new ISC changes
1995-04-30 00:15:10 +00:00
Todd C. Miller
d562e7ff71
fixed indentation
1995-04-13 17:54:17 +00:00
Todd C. Miller
52b6b6965b
updated ISC mods
1995-04-13 17:19:59 +00:00
Todd C. Miller
0869c2a39a
now sets SUDO_COMMAND and SUDO_GID envariables.
1995-04-09 21:04:57 +00:00
Todd C. Miller
050ca432ac
now sets removes # bogus interfaces from num_interfaces
1995-04-09 02:27:05 +00:00
Todd C. Miller
aa03cdc831
took out debugging info
1995-04-07 19:08:17 +00:00
Todd C. Miller
ec1c2e69e2
fixed loading of interfaces struct
...
still has debugging info in though
1995-04-07 03:30:53 +00:00
Todd C. Miller
911605896d
removed some unused vars and fixed up uid2str
1995-04-01 00:16:02 +00:00
Todd C. Miller
f4e9cea285
uid2str is now static like the prototype says
1995-03-31 21:12:17 +00:00
Todd C. Miller
086c511947
check_sudoers now returns an error code and sudo calls inform_user
...
and log_error based on the return value.
1995-03-30 04:46:16 +00:00
Todd C. Miller
838882502a
now explicately checks that it is setuid root
1995-03-30 03:36:55 +00:00
Todd C. Miller
a0b01e062b
If a user has no passwd entry sudo would segv (writing to a garbage pointer).
...
Now allocate space before writing :-)
1995-03-30 03:28:48 +00:00
Todd C. Miller
fe19bcc7c1
now do set_perms(PERM_ROOT) before the getpwuid() in load_global()
...
to work around a problem is trusted hpux shadow passwords. yuck.
1995-03-29 22:59:47 +00:00
Todd C. Miller
22c7d31a5f
took out -l
1995-03-29 13:16:48 +00:00
Todd C. Miller
4e29c4d3f1
moved a set of parens
1995-03-28 05:48:30 +00:00
Todd C. Miller
40fbed9036
removed ocmnd
1995-03-26 06:33:05 +00:00
Todd C. Miller
175390b58b
find_path() changed since no more realpath()
1995-03-26 06:19:20 +00:00
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