Commit Graph

2252 Commits

Author SHA1 Message Date
Todd C. Miller
7769bf6a32 o Change defaults stuff to put the value right in the struct.
o Implement mailer_flags
o Store syslog stuff both in int and string form.  Setting the string
  form magically updates the int version.
o Add boolean attribute to strings where it makes sense to say !foo
1999-10-07 21:21:08 +00:00
Todd C. Miller
cc82693f58 add O_NOCTTY when opening /dev/tty just in case 1999-10-07 21:13:45 +00:00
Todd C. Miller
c832accc14 cleanup function no longer takes a status arg 1999-10-06 04:48:47 +00:00
Todd C. Miller
97fc9e2322 the the 1999-10-06 04:48:15 +00:00
Todd C. Miller
f7e23611be Use strftime() instead of ctime() if it is available. 1999-09-15 09:15:33 +00:00
Todd C. Miller
7b5e21697f fix copyright date 1999-09-14 16:58:56 +00:00
Todd C. Miller
0da16dc261 update ReliantUNIX entry 1999-09-14 16:57:10 +00:00
Todd C. Miller
80ac47fb07 add log_year option 1999-09-14 16:56:32 +00:00
Todd C. Miller
c1f71dcd85 add --without-sendmail to help output 1999-09-14 08:01:25 +00:00
Todd C. Miller
bb635cab49 enforce an otctal arg for --with-suoders-mode 1999-09-14 07:42:16 +00:00
Todd C. Miller
13bf42675d Add support for "Defaults" line in sudoers to make configuration variables
changable at runtime (and on a global, per-host and per-user basis).
Both the names and the internal representation are still subject to change.
It was necessary to make sudo_user.runas but a char ** instead of a
char * since this value can be changed by a Defaults line.  There is a
similar (but more complicated) issue with sudo_user.prompt but it
is handled differently at the moment.

Add a "-L" flag to list the name of options with their descriptions.  This
may only be temporary.

Move some prototypes to parse.h

Be much less restrictive on what is allowed for a username.
1999-09-08 08:06:28 +00:00
Todd C. Miller
093fbe1e47 Add more info 1999-09-08 08:01:10 +00:00
Todd C. Miller
4aa7852a43 UCB has dropped the advertising clause from their license. 1999-09-04 07:09:04 +00:00
Todd C. Miller
3197ab9de0 move dce_verofy proto to correct section 1999-08-31 09:39:45 +00:00
Todd C. Miller
5b8c2b07b4 remove XXX 1999-08-31 09:39:17 +00:00
Todd C. Miller
f74a9f9877 Add fnmatch() prototype 1999-08-28 10:00:54 +00:00
Todd C. Miller
a067249e1c Move inclusion of emul/fnmatch.h to be after sudo.h for __P 1999-08-28 10:00:22 +00:00
Todd C. Miller
607e54b5e6 add strcasecmp proto 1999-08-28 09:59:18 +00:00
Todd C. Miller
ba31293c29 add check for case where there are no auth methods 1999-08-28 09:50:27 +00:00
Todd C. Miller
92e5ebd9f1 Define _XOPEN_EXTENDED_SOURCE on AIX and __USE_FIXED_PROTOTYPES__ on SunOS4 w/ gcc 1999-08-28 09:36:32 +00:00
Todd C. Miller
3a8c0ca966 include strings.h everywhere we include string.h 1999-08-28 09:24:15 +00:00
Todd C. Miller
55e31d781b nicer output when showing auth methods 1999-08-28 09:22:47 +00:00
Todd C. Miller
3de04bb481 Add support for SEND_MAIL_WHEN_NO_HOST 1999-08-28 09:00:07 +00:00
Todd C. Miller
fda4a9709f Add _GNU_SOURCE for Linux 1999-08-28 08:49:08 +00:00
Todd C. Miller
86c1328f6c fix definition of OCTECT 1999-08-28 08:22:27 +00:00
Todd C. Miller
df15b27a09 aix_auth.o not authenticate.o 1999-08-28 08:10:08 +00:00
Todd C. Miller
61bd59c733 Only block SIGINT, SIGQUIT, SIGTSTP (which can be generated from
the keyboard).  Since we run with ruid/euid == 0 the user can't
really signal us in nasty ways.
1999-08-27 21:02:24 +00:00
Todd C. Miller
8fcdf8a300 Don't need to worry about catching too many signals since we do locking
on the tmp file.  If a lockfile is really stale, it will be detected
and overwritten.
1999-08-27 21:01:06 +00:00
Todd C. Miller
24f317e173 include auth/API in tarball 1999-08-27 20:09:30 +00:00
Todd C. Miller
e026a2c24c move memset() of plaintext pw outside of verify loop and only do the
memset if we are *not* in standalone mode.
1999-08-27 20:09:15 +00:00
Todd C. Miller
017a9a0ad6 DCE is not a standalone method 1999-08-27 17:46:54 +00:00
Todd C. Miller
79faf00e5d fix --enable-noargs-shell 1999-08-27 15:53:29 +00:00
Todd C. Miller
54a43740e7 "#ifdef __STDC__" not "#if __STDC__" (I missed one) 1999-08-27 15:06:19 +00:00
Todd C. Miller
c5fc921211 _cleanup() function returns an int. 1999-08-27 14:54:52 +00:00
Todd C. Miller
e061ce62f7 there were still some return(0)'s hanging around, make them AUTH_FAILURE 1999-08-27 14:50:46 +00:00
Todd C. Miller
56f3bf61c1 typo in comment 1999-08-27 14:39:24 +00:00
Todd C. Miller
cff5f9b390 add missing semicolon 1999-08-27 14:03:19 +00:00
Todd C. Miller
b5dca2ab0a missing backslash 1999-08-27 12:31:25 +00:00
Todd C. Miller
359b5be92d Kill _XOPEN_EXTENDED_SOURCE -- causes problems on some OSes 1999-08-26 21:24:50 +00:00
Todd C. Miller
2e4dcff8f0 add parse.h to HDRS 1999-08-26 13:21:31 +00:00
Todd C. Miller
3118b7f865 Kill VISUDO_LIBS and VISUDO_LDFLAGS. Add LIBS, NET_LIBS, and LDFLAGS.
Common libs go in LIBS, commong ld flags go in LDFLAGS and network libs
like -lsocket, -lnsl go in NET_LIBS.  This allows testsudoers to build
on Solaris and is a bit cleaner in general.
1999-08-26 13:16:06 +00:00
Todd C. Miller
a80f9e0fbf mention ptmp -> sudoers.tmp 1999-08-26 10:56:21 +00:00
Todd C. Miller
ff95bb1d77 Define _XOPEN_SOURCE_EXTENDED not _XOPEN_SOURCE 1999-08-26 10:12:46 +00:00
Todd C. Miller
82a59a898b add 2 reports 1999-08-26 09:37:27 +00:00
Todd C. Miller
17f02dfb12 Minor changes, mostly cosmetic. verify_krb_v5_tgt() changed to return a value more like a system function 1999-08-26 09:20:32 +00:00
Todd C. Miller
39c448c714 Add an XXX 1999-08-26 09:19:25 +00:00
Todd C. Miller
21e6a9d16d more things todo! 1999-08-26 09:19:00 +00:00
Todd C. Miller
05a861df1f update based on what is in the man page 1999-08-26 09:18:42 +00:00
Todd C. Miller
2b28160a5d minor change to first line printed in -l mode 1999-08-26 09:10:50 +00:00
Todd C. Miller
e50798ff5b rename "ENVIRONMENT VARIABLES" section to "ENVIRONMENT" to be more standard and add "EXAMPLES" section 1999-08-26 09:10:12 +00:00