]> granicus.if.org Git - sudo/log
sudo
29 years agoadded missing set_perms()
Todd C. Miller [Thu, 16 Nov 1995 07:54:33 +0000 (07:54 +0000)]
added missing set_perms()
no more cryptic message if the sudoers file is zero length,
now just give a parse error

29 years agobetter diagnostics if NO_SUDOERS_FILE
Todd C. Miller [Thu, 16 Nov 1995 07:42:12 +0000 (07:42 +0000)]
better diagnostics if NO_SUDOERS_FILE

29 years agocheck_sudoers() now catches sudoers files that are not readable
Todd C. Miller [Thu, 16 Nov 1995 07:41:35 +0000 (07:41 +0000)]
check_sudoers() now catches sudoers files that are not readable
(but are stat'able).

29 years agonow add -D__STDC__ for convex cc (not gcc)
Todd C. Miller [Mon, 13 Nov 1995 06:12:19 +0000 (06:12 +0000)]
now add -D__STDC__ for convex cc (not gcc)

29 years agoMAN_PREFIX -> man_prefix
Todd C. Miller [Mon, 13 Nov 1995 05:52:24 +0000 (05:52 +0000)]
MAN_PREFIX -> man_prefix
now sets prefix and exec_prefix

29 years agonow uses exec_prefix & prefix from configure
Todd C. Miller [Mon, 13 Nov 1995 05:52:08 +0000 (05:52 +0000)]
now uses exec_prefix & prefix from configure

29 years agooptions.h is now <> instead of "" so shadow build trees can
Todd C. Miller [Mon, 13 Nov 1995 05:16:38 +0000 (05:16 +0000)]
options.h is now <> instead of "" so shadow build trees can
have a custom copy of options.h

29 years agouser_is_exempt() is no longer a hack, it now uses getgrnam()
Todd C. Miller [Mon, 13 Nov 1995 05:15:37 +0000 (05:15 +0000)]
user_is_exempt() is no longer a hack, it now uses getgrnam()

29 years agoEXEMPTGROUP is now "sudo"
Todd C. Miller [Mon, 13 Nov 1995 04:56:20 +0000 (04:56 +0000)]
EXEMPTGROUP is now "sudo"

29 years agoMAN_POSTINSTALL now contains a leading space
Todd C. Miller [Mon, 13 Nov 1995 03:25:48 +0000 (03:25 +0000)]
MAN_POSTINSTALL now contains a leading space

29 years agoremoved leading tab if @MAN_POSTINSTALL@ not defined
Todd C. Miller [Mon, 13 Nov 1995 03:25:07 +0000 (03:25 +0000)]
removed leading tab if @MAN_POSTINSTALL@ not defined
now removes testsudoers in clean:

29 years agoincludes pwd.h to get _PASSWD_LEN definition
Todd C. Miller [Mon, 13 Nov 1995 03:24:37 +0000 (03:24 +0000)]
includes pwd.h to get _PASSWD_LEN definition

29 years agounset the KRB_CONF envariable if using kerberos so we don't get
Todd C. Miller [Mon, 30 Oct 1995 20:51:18 +0000 (20:51 +0000)]
unset the KRB_CONF envariable if using kerberos so we don't get
spoofed into using a bogus server

29 years agonow explicately initialize match[] tp be FALSE
Todd C. Miller [Fri, 29 Sep 1995 21:50:21 +0000 (21:50 +0000)]
now explicately initialize match[] tp be FALSE

29 years agoremoved unused variable
Todd C. Miller [Sat, 23 Sep 1995 20:48:48 +0000 (20:48 +0000)]
removed unused variable
now passes -Wall

29 years agoyyerror and dumpaliases are now void's
Todd C. Miller [Sat, 23 Sep 1995 20:48:16 +0000 (20:48 +0000)]
yyerror and dumpaliases are now void's
now passes -Wall

29 years agoadded prototype for yyerror
Todd C. Miller [Sat, 23 Sep 1995 20:48:04 +0000 (20:48 +0000)]
added prototype for yyerror

29 years agonow passes -Wall
Todd C. Miller [Sat, 23 Sep 1995 20:47:54 +0000 (20:47 +0000)]
now passes -Wall

29 years agormeoved unused cruft
Todd C. Miller [Sat, 23 Sep 1995 20:47:31 +0000 (20:47 +0000)]
rmeoved unused cruft
now passes -Wall

29 years agofixed headers that moved to emul dir
Todd C. Miller [Sat, 23 Sep 1995 20:46:43 +0000 (20:46 +0000)]
fixed headers that moved to emul dir

29 years agofixed deref of nil pointer if no args
Todd C. Miller [Sat, 23 Sep 1995 16:05:40 +0000 (16:05 +0000)]
fixed deref of nil pointer if no args

29 years agoadded a caveat to FQDN section
Todd C. Miller [Fri, 15 Sep 1995 23:18:14 +0000 (23:18 +0000)]
added a caveat to FQDN section

29 years agomore $srcdir support for install targets
Todd C. Miller [Wed, 13 Sep 1995 23:48:57 +0000 (23:48 +0000)]
more $srcdir support for install targets

29 years agodon't include malloc.h if we include stdlib.h
Todd C. Miller [Wed, 13 Sep 1995 21:17:06 +0000 (21:17 +0000)]
don't include malloc.h if we include stdlib.h

29 years agolocal search.h now lives in emul
Todd C. Miller [Wed, 13 Sep 1995 01:44:35 +0000 (01:44 +0000)]
local search.h now lives in emul

29 years agolocal utime.h now lives in emul dir
Todd C. Miller [Wed, 13 Sep 1995 01:41:55 +0000 (01:41 +0000)]
local utime.h now lives in emul dir

29 years agolocal search.h now lives in emul
Todd C. Miller [Wed, 13 Sep 1995 01:41:32 +0000 (01:41 +0000)]
local search.h now lives in emul

29 years agoadded support for building in other than the sourcedir
Todd C. Miller [Wed, 13 Sep 1995 01:38:34 +0000 (01:38 +0000)]
added support for building in other than the sourcedir

29 years agoannotated CSOPS_INSULTS option
Todd C. Miller [Sun, 10 Sep 1995 18:01:34 +0000 (18:01 +0000)]
annotated CSOPS_INSULTS option

29 years agoupdated shadow passwords blurb
Todd C. Miller [Sun, 10 Sep 1995 17:56:19 +0000 (17:56 +0000)]
updated shadow passwords blurb

29 years agoif SHELL_IF_NO_ARGS is set, "sudo -- foo" now runs a shell
Todd C. Miller [Sun, 10 Sep 1995 01:00:24 +0000 (01:00 +0000)]
if SHELL_IF_NO_ARGS is set, "sudo -- foo" now runs a shell
and passes along foo as the arguments

29 years agocollapsed pathname and dir sections into one -- its now less expensive
Todd C. Miller [Sat, 9 Sep 1995 22:52:57 +0000 (22:52 +0000)]
collapsed pathname and dir sections into one -- its now less expensive

29 years agofixed spacing
Todd C. Miller [Sat, 9 Sep 1995 22:34:40 +0000 (22:34 +0000)]
fixed spacing
quoting [,:\\=] now works correctly
append() and fill() now take args to make the above work

29 years agofixed a typo that caused commands with no tty on fd 0 but a tty
Todd C. Miller [Sat, 9 Sep 1995 00:51:49 +0000 (00:51 +0000)]
fixed a typo that caused commands with no tty on fd 0 but a tty
on fd 1 to erroneously have "none" as their tty

29 years agotimestampfile is now a global static
Todd C. Miller [Mon, 4 Sep 1995 19:35:04 +0000 (19:35 +0000)]
timestampfile is now a global static
removed decl of timestampfile in remove_timestamp since we can just
use the global one

29 years agocreated touch() to update timestamps
Todd C. Miller [Mon, 4 Sep 1995 19:28:25 +0000 (19:28 +0000)]
created touch() to update timestamps
added USE_TTY_TICKETS support (bit of a kludge)

29 years agoadded _S_IFDIR and S_ISDIR
Todd C. Miller [Mon, 4 Sep 1995 19:28:15 +0000 (19:28 +0000)]
added _S_IFDIR and S_ISDIR

29 years agoadded USE_TTY_TICKETS
Todd C. Miller [Mon, 4 Sep 1995 19:22:57 +0000 (19:22 +0000)]
added USE_TTY_TICKETS

29 years agoremoved const from casts for lsearch() & lfind() to placate irix 4.x
Todd C. Miller [Mon, 4 Sep 1995 04:38:39 +0000 (04:38 +0000)]
removed const from casts for lsearch() & lfind() to placate irix 4.x
C compiler

29 years agonow only strip '/dev/' off of a tty if it starts with '/dev/'
Todd C. Miller [Sun, 3 Sep 1995 18:12:24 +0000 (18:12 +0000)]
now only strip '/dev/' off of a tty if it starts with '/dev/'

29 years agoadded _PATH_DEV
Todd C. Miller [Sun, 3 Sep 1995 18:12:00 +0000 (18:12 +0000)]
added _PATH_DEV

29 years agoAC_HAVE_HEADERS -> AC_CHECK_HEADERS
Todd C. Miller [Sun, 3 Sep 1995 18:11:25 +0000 (18:11 +0000)]
AC_HAVE_HEADERS -> AC_CHECK_HEADERS
now check for tcgetattr only if have termios.h

29 years agofixed incorrect #ifdef
Todd C. Miller [Sun, 3 Sep 1995 18:09:40 +0000 (18:09 +0000)]
fixed incorrect #ifdef
termio uses "unsigned short" not int for c_?flag

29 years agofixed a spelling error
Todd C. Miller [Sun, 3 Sep 1995 17:19:51 +0000 (17:19 +0000)]
fixed a spelling error

29 years agofixed typo
Todd C. Miller [Sun, 3 Sep 1995 17:17:17 +0000 (17:17 +0000)]
fixed typo

29 years agofixed a comment
Todd C. Miller [Sat, 2 Sep 1995 16:55:40 +0000 (16:55 +0000)]
fixed a comment

29 years agoadded dotcat() to cat 2 strings w/ a dot effeciently
Todd C. Miller [Sat, 2 Sep 1995 16:54:22 +0000 (16:54 +0000)]
added dotcat() to cat 2 strings w/ a dot effeciently
now that we dynamically allocate strings they need to be free()'d

29 years agodynamically allocates space for strings
Todd C. Miller [Sat, 2 Sep 1995 16:46:45 +0000 (16:46 +0000)]
dynamically allocates space for strings

29 years agono more MAXCOMMANDLENGTH
Todd C. Miller [Sat, 2 Sep 1995 16:34:48 +0000 (16:34 +0000)]
no more MAXCOMMANDLENGTH

29 years agoadded decl of tty
Todd C. Miller [Sat, 2 Sep 1995 02:25:24 +0000 (02:25 +0000)]
added decl of tty

29 years agomoved tty stuff into sudo.c
Todd C. Miller [Sat, 2 Sep 1995 02:25:17 +0000 (02:25 +0000)]
moved tty stuff into sudo.c

29 years agofixed a logic bug. Was denying a command if user gave command
Todd C. Miller [Fri, 1 Sep 1995 18:18:32 +0000 (18:18 +0000)]
fixed a logic bug.  Was denying a command if user gave command
line args but there were none in the sudoers file which is wrong.

29 years agoMAXCOMMMANDLEN dropped down to 1K
Todd C. Miller [Fri, 1 Sep 1995 05:18:19 +0000 (05:18 +0000)]
MAXCOMMMANDLEN dropped down to 1K

29 years agoreturn foo; -> return(foo);
Todd C. Miller [Fri, 1 Sep 1995 05:13:23 +0000 (05:13 +0000)]
return foo; -> return(foo);

29 years agofixed netgr_matches() prototype
Todd C. Miller [Fri, 1 Sep 1995 05:03:27 +0000 (05:03 +0000)]
fixed netgr_matches() prototype

29 years agoadded support for escaping "termination" characters
Todd C. Miller [Fri, 1 Sep 1995 05:02:04 +0000 (05:02 +0000)]
added support for escaping "termination" characters

29 years agobuf is now of size MAXPATHLEN+1 since it never holds command args
Todd C. Miller [Fri, 1 Sep 1995 04:55:34 +0000 (04:55 +0000)]
buf is now of size MAXPATHLEN+1 since it never holds command args

29 years agofixed comments
Todd C. Miller [Fri, 1 Sep 1995 04:50:07 +0000 (04:50 +0000)]
fixed comments

29 years agofixed negation problem (doh!)
Todd C. Miller [Fri, 1 Sep 1995 04:49:48 +0000 (04:49 +0000)]
fixed negation problem (doh!)

29 years agofixed 2nd parameter to lfind()
Todd C. Miller [Fri, 1 Sep 1995 04:25:17 +0000 (04:25 +0000)]
fixed 2nd parameter to lfind()

29 years agonow do bounds checking in fill() and append()
Todd C. Miller [Fri, 1 Sep 1995 04:24:52 +0000 (04:24 +0000)]
now do bounds checking in fill() and append()

29 years agoinclude netdb.h as we should
Todd C. Miller [Fri, 1 Sep 1995 04:23:19 +0000 (04:23 +0000)]
include netdb.h as we should
added a missing void cast
added SHELL_IF_NO_ARGS support
now use realloc() properly.  would fail if realloc actually moved
the string instead of shrinking it

29 years agoupdated with examples of new features
Todd C. Miller [Fri, 1 Sep 1995 04:17:42 +0000 (04:17 +0000)]
updated with examples of new features

29 years agonow set errno to EACCES if not a regular file or not executable
Todd C. Miller [Fri, 1 Sep 1995 04:05:55 +0000 (04:05 +0000)]
now set errno to EACCES if not a regular file or not executable

29 years agoif given a fully-qualified or relative path we now check it
Todd C. Miller [Fri, 1 Sep 1995 04:04:43 +0000 (04:04 +0000)]
if given a fully-qualified or relative path we now check it
with sudo_goodpath() and error out with the appropriate error
message if the file does not exist or is not executable

29 years agonow use correct args for lfind
Todd C. Miller [Fri, 1 Sep 1995 04:03:56 +0000 (04:03 +0000)]
now use correct args for lfind

29 years agoadded a comment
Todd C. Miller [Fri, 1 Sep 1995 04:03:32 +0000 (04:03 +0000)]
added a comment

29 years agoadded in CSOps insults
Todd C. Miller [Fri, 1 Sep 1995 03:52:32 +0000 (03:52 +0000)]
added in CSOps insults

29 years agoInitial revision
Todd C. Miller [Fri, 1 Sep 1995 03:51:53 +0000 (03:51 +0000)]
Initial revision

29 years agoadded RCS id
Todd C. Miller [Fri, 1 Sep 1995 03:35:50 +0000 (03:35 +0000)]
added RCS id

29 years agoincreased MAXCOMMANDLENGTH to 8k
Todd C. Miller [Fri, 1 Sep 1995 02:56:08 +0000 (02:56 +0000)]
increased MAXCOMMANDLENGTH to 8k
HAVE_GETCWD -> HAVE_GETWD

29 years agoadded CLASSIC_INSULTS, CSOPS_INSULTS, SHELL_IF_NO_ARGS
Todd C. Miller [Fri, 1 Sep 1995 02:55:40 +0000 (02:55 +0000)]
added CLASSIC_INSULTS, CSOPS_INSULTS, SHELL_IF_NO_ARGS

29 years agofixed -k
Todd C. Miller [Fri, 1 Sep 1995 02:54:48 +0000 (02:54 +0000)]
fixed -k
load_interfaces() now gets called if FQDN is set
-p now works with -s

29 years agodon't try to stat() "pseudo commands" like "validate"
Todd C. Miller [Fri, 1 Sep 1995 02:54:08 +0000 (02:54 +0000)]
don't try to stat() "pseudo commands" like "validate"

29 years agoadded CLASSIC_INSULTS
Todd C. Miller [Fri, 1 Sep 1995 02:53:36 +0000 (02:53 +0000)]
added CLASSIC_INSULTS
added CSOPS_INSULTS
added SHELL_IF_NO_ARGS

29 years agoadded SecurID support
Todd C. Miller [Fri, 1 Sep 1995 02:53:07 +0000 (02:53 +0000)]
added SecurID support
added other insults to --with-csops

29 years agoadded HAVE_SECURID
Todd C. Miller [Fri, 1 Sep 1995 02:52:57 +0000 (02:52 +0000)]
added HAVE_SECURID

29 years agoadded clobber target
Todd C. Miller [Fri, 1 Sep 1995 02:52:22 +0000 (02:52 +0000)]
added clobber target
added ins_csops.h
now gets CFLAGS from configure

29 years agorelaxed SUDO_FULL_VOID
Todd C. Miller [Fri, 1 Sep 1995 02:46:10 +0000 (02:46 +0000)]
relaxed SUDO_FULL_VOID

29 years agofunction comment blocks are now in same style as rest of code
Todd C. Miller [Fri, 1 Sep 1995 02:44:54 +0000 (02:44 +0000)]
function comment blocks are now in same style as rest of code

29 years agoadded support for command line args in /etc/sudoers
Todd C. Miller [Fri, 1 Sep 1995 02:44:18 +0000 (02:44 +0000)]
added support for command line args in /etc/sudoers

29 years agoupdated to have command args in the sudoers file
Todd C. Miller [Fri, 1 Sep 1995 02:43:35 +0000 (02:43 +0000)]
updated to have command args in the sudoers file

29 years agoadded -s and -- flags
Todd C. Miller [Fri, 1 Sep 1995 02:42:45 +0000 (02:42 +0000)]
added -s and -- flags
added SHELL to ENVIRONMENT VARIABLES section

29 years agoPATH renamed to COMMAND
Todd C. Miller [Sat, 19 Aug 1995 23:32:04 +0000 (23:32 +0000)]
PATH renamed to COMMAND

29 years agoit is now a parse error for directories to have args attached to them
Todd C. Miller [Sat, 19 Aug 1995 23:31:35 +0000 (23:31 +0000)]
it is now a parse error for directories to have args attached to them

29 years agonow say command args if telling user to buzz off
Todd C. Miller [Sat, 19 Aug 1995 23:30:56 +0000 (23:30 +0000)]
now say command args if telling user to buzz off

29 years ago-s no longer indicates end of args
Todd C. Miller [Sat, 19 Aug 1995 23:30:03 +0000 (23:30 +0000)]
-s no longer indicates end of args
sped up loading on cmnd_args in load_cmnd()

29 years agoremoved an unreachable statement
Todd C. Miller [Sat, 19 Aug 1995 23:29:42 +0000 (23:29 +0000)]
removed an unreachable statement

29 years agomade more efficient by pulling out the terminators when in
Todd C. Miller [Sat, 19 Aug 1995 21:53:38 +0000 (21:53 +0000)]
made more efficient by pulling out the terminators when in
GOTCMND state and making them their own rule

29 years agoremoved MAXLOGLEN since it is no longer used
Todd C. Miller [Mon, 14 Aug 1995 04:07:45 +0000 (04:07 +0000)]
removed MAXLOGLEN since it is no longer used

29 years agonow allows command args
Todd C. Miller [Mon, 14 Aug 1995 04:07:15 +0000 (04:07 +0000)]
now allows command args

29 years agonow groks command arguments
Todd C. Miller [Mon, 14 Aug 1995 04:06:27 +0000 (04:06 +0000)]
now groks command arguments

29 years agonow sets tty correctly when piped input
Todd C. Miller [Mon, 14 Aug 1995 03:39:05 +0000 (03:39 +0000)]
now sets tty correctly when piped input

29 years agofixed loading of cmnd_args (was including command name too)
Todd C. Miller [Mon, 14 Aug 1995 03:35:43 +0000 (03:35 +0000)]
fixed loading of cmnd_args (was including command name too)

29 years agofixed a core dump due to incorrect if construct
Todd C. Miller [Mon, 14 Aug 1995 03:34:36 +0000 (03:34 +0000)]
fixed a core dump due to incorrect if construct

29 years agoonly add -lsun is irix < 5
Todd C. Miller [Sun, 13 Aug 1995 04:33:39 +0000 (04:33 +0000)]
only add -lsun is irix < 5
don't look for -lnsl or -lsocket if irix

29 years agofixed check for ISC
Todd C. Miller [Sun, 13 Aug 1995 04:33:08 +0000 (04:33 +0000)]
fixed check for ISC

29 years agonow sets cmnd_args used by log_error() and that will be used
Todd C. Miller [Sun, 13 Aug 1995 04:32:19 +0000 (04:32 +0000)]
now sets cmnd_args used by log_error() and that will be used
by the parse to check against command args

29 years agoadded cmnd_args
Todd C. Miller [Sun, 13 Aug 1995 04:32:05 +0000 (04:32 +0000)]
added cmnd_args

29 years agonow dynamically allocate logline since we can guess at its
Todd C. Miller [Sun, 13 Aug 1995 04:31:41 +0000 (04:31 +0000)]
now dynamically allocate logline since we can guess at its
size