Commit Graph

134 Commits

Author SHA1 Message Date
Todd C. Miller
dd312cee2f o BSD copyright
o no need to block signals, we now do that in main()
o cosmetic changes
1999-07-22 12:58:39 +00:00
Todd C. Miller
69a00325ec New (correct) PAM code
Tgetpass now takes an echo flag for use with PAM_PROMPT_ECHO_ON
Block SIGINT and SIGTSTP during auth
remove a useless umask setting
Change error from BAD_ALLOCATION -> BAD_AUTH_INIT (for use with sia/PAM)
Some cosmetic changes to auth.c for consistency
1999-07-05 20:14:21 +00:00
Todd C. Miller
1eab167a30 Fix open(2) return value checking, was NULL for fopen, should be -1 for open 1999-06-03 16:34:10 +00:00
Todd C. Miller
80287c981c Move interface-related defines to interfaces.h so we don't have to include
<netinet/in.h> everywhere.
1999-05-17 01:36:30 +00:00
Todd C. Miller
850a52aa6f o Replace _PASSWD_LEN braindeath with our own SUDO_MAX_PASS.
It turns out the old DES crypt does the right thing with passwords
   longert than 8 characters.
 o Fix common typo (necesary -> necessary)
 o Update TODO list
1999-05-14 16:30:14 +00:00
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
e6deacb6c4 Crank version to 1.6 and combine copyright statements 1999-04-05 20:57:25 +00:00
Todd C. Miller
79c46d1c81 ++version 1999-03-29 04:05:15 +00:00
Todd C. Miller
52916f16ac add explicate copyright 1999-02-03 04:32:19 +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
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
b751a2b9c4 the prompt is expanded before tgetpass is called 1998-11-03 20:03:31 +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
3d92a1bb92 new dunix shadow code, use dispcrypt(3) 1998-10-19 18:32:39 +00:00
Todd C. Miller
bb8c2e2a74 if select return < -1 still prompt for pw 1998-10-15 04:10:44 +00:00
Todd C. Miller
a05c2b96b4 catch EINTR in select and restart 1998-10-15 03:28:21 +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
0c54ebc581 include sys/param.h to get howmany macro 1998-09-09 00:43:49 +00:00
Todd C. Miller
2b2b9eb8ef include stdlib.h for malloc proto 1998-06-24 16:22:26 +00:00
Todd C. Miller
12477fd6e6 updated version 1998-04-06 03:35:50 +00:00
Todd C. Miller
e37e1e56b6 updated version 1998-03-31 05:05:49 +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
9cc65287f3 remove bogus flush of stderr
spew prompt before turning off echo.  Seems to fix a weird problem where
if sudo complained about a bogus stamp file the user would sometimes
not have a chance to enter a password
1998-02-06 19:05:19 +00:00
Todd C. Miller
0e8cf35a7b fix select usage for high fd's (dynamically allocate readfds) 1998-01-23 03:53:52 +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
166789a1dd ++version 1998-01-13 04:48:42 +00:00
Todd C. Miller
ea498e61d3 use fileno(input) + 1 instead of getdtablesize() as the nfds arg to select(2) 1997-11-23 18:24:31 +00:00
Todd C. Miller
5e723efe75 ++version 1996-11-14 02:37:56 +00:00
Todd C. Miller
67b0c86352 _AIX -> HAVE_SYS_SELECT_H 1996-10-08 22:54:49 +00:00
Todd C. Miller
b0248f15df ++version 1996-10-07 05:07:09 +00:00
Todd C. Miller
6a230806a8 courtesan 1996-09-08 00:21:42 +00:00
Todd C. Miller
d189849b44 ++version 1996-08-30 00:37:04 +00:00
Todd C. Miller
23ccf12697 added %u and %h escapes 1996-08-29 21:57:52 +00:00
Todd C. Miller
35825133a7 ++version 1996-08-17 23:25:40 +00:00
Todd C. Miller
bd228048bf added extra paren's to make compilers happy 1996-08-17 22:41:36 +00:00
Todd C. Miller
bdfd25e871 now only turn off echo if it is already on. this fixes a race
when you use sudo in a pipelin
1996-07-30 17:41:59 +00:00
Todd C. Miller
e7999949e4 use SHADOW_TYPE instead of HAVE_C2_SECURITY 1996-07-26 03:46:42 +00:00
Todd C. Miller
015c901511 now include stuff for SPW_SECUREWARE to get AUTH_MAX_PASSWD_LENGTH 1996-07-14 01:05:23 +00:00
Todd C. Miller
a27847e1ba now deals with timeout <= 0 1996-07-08 13:55:43 +00:00
Todd C. Miller
1e21b9212a back to using stdio instead of raw i/o since that caused some problems 1996-06-04 23:40:39 +00:00
Todd C. Miller
20a284166a fixed a typo wrt placement of an end paren 1996-04-02 21:42:59 +00:00
Todd C. Miller
61a3d472ef now define TCSASOFT in necesary 1996-03-19 01:57:27 +00:00
Todd C. Miller
e47ce61c4e now uses read/write instead of stdio string goop to avoid problems
with select(2)
1996-03-19 01:31:03 +00:00