Commit Graph

229 Commits

Author SHA1 Message Date
Todd C. Miller
06e586ee7b Function names should be flush with the start of the line so they can be found trivially in an editor and with grep 1999-04-10 04:49:03 +00:00
Todd C. Miller
eecc5ce1c9 free(3) is already void, no need to cast it 1999-04-10 04:40:57 +00:00
Todd C. Miller
8e8fbc251e catch case where cmnd_safe is not set (this should not be possible) 1999-04-10 04:37:35 +00:00
Todd C. Miller
59b0cff8cf Stash the "safe" path (ie: the one listed in sudoers) to the command instead
of stashing the struct stat.  Should be safer.
1999-04-10 04:10:01 +00:00
Todd C. Miller
499e869237 Add VALIDATE_NOT_OK_NOPASS for when user is not allowed to run a command
but the NOPASSWD flag was set.
Make runasspec, runaslist, runasuser, and nopasswd typeless in parse.yacc
Add support for '!' in the runas list
Fix double printing of '%' and '+' for groups and netgroups respectively
Add *_matched macros (no need for local stack variable).  Should only be
used directly after a pop (since top must be >= 2).
1999-04-06 05:00:29 +00:00
Todd C. Miller
e6deacb6c4 Crank version to 1.6 and combine copyright statements 1999-04-05 20:57:25 +00:00
Todd C. Miller
1b56f53a40 Make sudo's usage info better when mutually exclusive args are given and don't rely on argument order to detect this; nick@zeta.org.au 1999-03-30 06:01:46 +00:00
Todd C. Miller
79c46d1c81 ++version 1999-03-29 04:05:15 +00:00
Todd C. Miller
382ef75493 Use emalloc/erealloc/estrdup 1999-03-29 02:59:34 +00:00
Todd C. Miller
c74286542b shost must be set before log functions are called #ifdef HOST_IN_LOG 1999-03-13 18:37:57 +00:00
Todd C. Miller
f9b80fcad4 add cast for strdup in places it does not have it 1999-02-11 06:41:32 +00:00
Todd C. Miller
52916f16ac add explicate copyright 1999-02-03 04:32:19 +00:00
Todd C. Miller
e6f9653f79 Don't clobber errno after calling check_sudoers(). 1999-02-02 22:54:04 +00:00
Todd C. Miller
826fe213f2 add sudo tags 1999-01-17 23:16:20 +00:00
Todd C. Miller
d3aaf52283 crank version and regen files 1999-01-17 22:40:55 +00:00
Todd C. Miller
3983a7a651 kerb5 support from fcusack@iconnet.net 1999-01-17 22:08:55 +00:00
Todd C. Miller
62dba8f4d1 more -Wall 1998-11-18 04:16:13 +00:00
Todd C. Miller
c253188f55 -Wall 1998-11-18 03:51:10 +00:00
Todd C. Miller
ba5a24cfc3 add missing inform_user() 1998-11-16 22:38:27 +00:00
Todd C. Miller
53969f978f add "ignoring foo found in ." for auth successful case 1998-11-10 00:15:04 +00:00
Todd C. Miller
b82d683a3b add missing printf param 1998-11-09 22:57:52 +00:00
Todd C. Miller
0900eabf3b go back to printing "command not found" unless --disable-path-info
specified.  Also, tell user when we ignore '.' in their path and
it would have been used but for --with-ignore-dot.
1998-11-08 20:56:52 +00:00
Todd C. Miller
0b9e318b75 Only one space after a colon, not two, in printf's 1998-11-08 18:51:58 +00:00
Todd C. Miller
ef4b731616 set $USER for root too 1998-11-05 02:21:35 +00:00
Todd C. Miller
22f741b38c kill perror("malloc") since we already have a good error messages
pw_ent -> pw for brevity
set $USER if -u specified
1998-11-04 01:40:45 +00:00
Todd C. Miller
7ffee3b997 getprpwuid is broken in HP-UX 10.20 at least (it sleeps for 2 minutes if the
shadow files don't exist).
1998-10-21 23:50:10 +00:00
Todd C. Miller
156c3b069c call initprivs() if we have it for getprpwuid later on 1998-10-19 18:31:31 +00:00
Todd C. Miller
5bfb481ca7 no more options.h 1998-10-15 05:41:26 +00:00
Todd C. Miller
a40aca2b10 kill sys/time.h 1998-10-15 05:32:30 +00:00
Todd C. Miller
9d6cd6f216 UMASK -> SUDO_UMASK. 1998-09-24 15:40:39 +00:00
Todd C. Miller
1c66c857e4 new shadow password scheme. Always include shadow support if the
platform supports it and the user did not disable it via configure
1998-09-21 04:00:56 +00:00
Todd C. Miller
0ef9f25d7e updated version 1998-09-17 16:27:15 +00:00
Todd C. Miller
6ded52e066 set NewArgv[0] to user_shell, not basename(user_shell) 1998-09-13 19:32:48 +00:00
Todd C. Miller
e68f156aca add RUNAS_DEFAULT 1998-09-08 00:42:02 +00:00
Todd C. Miller
2e6a9074e6 use HAVE_SET_AUTH_PARAMETERS 1998-09-07 16:43:05 +00:00
Todd C. Miller
ca0a28b03f Sudo should prompt for a password before telling the user that
a command could not be found.
1998-09-07 03:48:43 +00:00
Todd C. Miller
12477fd6e6 updated version 1998-04-06 03:35:50 +00:00
Todd C. Miller
7f4e5240cf typo 1998-04-06 03:21:42 +00:00
Todd C. Miller
c27d678ff7 MAX* + 1 -> MAX* 1998-04-06 03:15:39 +00:00
Todd C. Miller
e37e1e56b6 updated version 1998-03-31 05:05:49 +00:00
Todd C. Miller
533fbe0711 change size computation of NewArgv for UNICOS 1998-03-28 00:27:03 +00:00
Todd C. Miller
c866646cdf updated version 1998-02-18 21:39:31 +00:00
Todd C. Miller
2fc787d5f6 updated version 1998-02-17 02:43:17 +00:00
Todd C. Miller
bc7803cd08 updated version 1998-02-06 20:49:24 +00:00
Todd C. Miller
25ed56fba2 close fd's <=2 not <=3 and move that chunk of code up 1998-02-06 00:19:24 +00:00
Todd C. Miller
7d5c340f98 do an initgroups() before running a command, unless the target user
is root.
1998-01-23 00:28:00 +00:00
Todd C. Miller
0c362fb216 updated version 1998-01-21 06:33:06 +00:00
Todd C. Miller
bb6a33e080 updated version 1998-01-21 05:50:58 +00:00
Todd C. Miller
8de870a706 in check_sudoers, cache the sudoers file handle in sudoers_fp so
we don't have to open it again in the parse.  This may help
with weird solaris problems where EAGAIN sometime occurrs.
1998-01-21 05:03:46 +00:00
Todd C. Miller
7b3bc67b01 newer irix uses _RLDN32_* envariables for 32-bit binaries so ignore _RLD* instead of _RLD_* 1998-01-13 17:58:40 +00:00