Todd C. Miller
76ff0218c1
Fix generation of entries with NULL descriptions.
2001-12-11 01:27:42 +00:00
Todd C. Miller
d38e57ef48
Use sigaction_t and quiet a gcc warning.
2001-12-09 05:27:11 +00:00
Todd C. Miller
4cad1daa76
Must reset signal handlers before we exec
2001-12-09 05:20:34 +00:00
Todd C. Miller
88951a3b9d
Be carefule now that tgetpass() can return NULL (user hit ^C).
...
PAM version needs testing.
Set SIGTSTP to SIG_DFL during password entry so user can suspend us.
2001-12-09 05:17:00 +00:00
Todd C. Miller
6d6d4628f4
Add support for interrupting/suspending tgetpass via keyboard input.
...
If you suspend sudo from the password prompt and resume it will
re-prompt you.
2001-12-09 05:14:23 +00:00
Todd C. Miller
60bbfa42df
Don't block keyboard interrupt signals, just set them to SIG_IGN.
2001-12-09 05:09:10 +00:00
Todd C. Miller
e6545c86fc
add back HAVE_SIGACTION
2001-12-08 19:48:03 +00:00
Todd C. Miller
c570580e42
regen
2001-12-08 19:44:55 +00:00
Todd C. Miller
241cb64cc4
Kill POSIX_SIGNALS define and old signal support now that we emulate POSIX ones
...
Also be sure to correctly initialize struct sigaction.
2001-12-08 19:44:30 +00:00
Todd C. Miller
028a55fb23
Don't need config.h or "#ifndef HAVE_STRERROR" wrapper.
2001-12-08 19:42:32 +00:00
Todd C. Miller
fb66a33153
Add scaffolding for POSIX signal emulation
2001-12-08 19:39:28 +00:00
Todd C. Miller
0cee8304a7
o Add missing ';' so this compiles
...
o Can't use NULL since we don't include stdio.h
2001-12-08 19:36:48 +00:00
Todd C. Miller
9af30ba66e
Emulate sigaction() using sigvec()
2001-12-08 19:23:11 +00:00
Todd C. Miller
78d67cfb53
Document new behavior of negative values of timestamp_timeout
...
Fix a typo
2001-11-13 00:32:11 +00:00
Todd C. Miller
eac21ad7bf
Add security note about command not being logged after 'sudo su' and
...
friends.
2001-11-13 00:31:20 +00:00
Todd C. Miller
031b009219
Mention that -V prints default values when run as root, including
...
the list of environment variables to clear.
2001-11-13 00:19:29 +00:00
Todd C. Miller
fc52725317
Run pod2man with --quotes=none to avoid stupid quoting of C<> entries.
2001-11-13 00:14:29 +00:00
Todd C. Miller
de9d655ea6
Add mail_badpass option
...
Also modify mail_always behavior to also send mail when the password is wrong
2001-11-12 18:13:03 +00:00
Todd C. Miller
63ae9ec2ad
Dump default bad env table when 'sudo -V' is run by root.
2001-11-12 18:08:30 +00:00
Todd C. Miller
c4c0f0046e
document env_delete
2001-11-12 04:52:23 +00:00
Todd C. Miller
65302649f5
Add support for '*' in env_keep when not resetting the environment
...
(ie: the normal case).
2001-11-12 04:51:57 +00:00
Todd C. Miller
ab020c056b
Add env_delete variable that lets the user replace/add to the bad_env_table.
...
Allow '*' wildcard in env_keep entries.
2001-11-12 04:47:22 +00:00
Todd C. Miller
07f5d7ae7e
Force umask to 022 to guarantee sane directory permissions.
2001-11-06 18:59:36 +00:00
Todd C. Miller
5133d4a34a
add sudo.tab.h and sudo.tab.c to sudo.tab.o dependency
2001-11-02 23:09:35 +00:00
Todd C. Miller
2d5486db9a
fix breakage in last commit
2001-11-02 22:25:21 +00:00
Todd C. Miller
1d232a6aaf
acsite.m4 -> aclocal.m4
2001-11-02 22:18:04 +00:00
Todd C. Miller
dea43637e8
fix I_TS_TIMEOUT vs. I_TIMESTAMP_TIMEOUT pasto in previous commit
2001-11-02 20:59:22 +00:00
Todd C. Miller
d50e2bb387
regenerated from def_data.in
2001-11-02 20:57:02 +00:00
Todd C. Miller
3550d52a90
Add new T_UINT type that most things use instead of T_INT
...
If timestamp_timeout is < 0 then treat the ticket as never expiring
(to be expired manually by the user).
2001-11-02 20:56:20 +00:00
Todd C. Miller
0906516dfe
change most T_INT -> T_UINT
2001-11-02 20:51:43 +00:00
Todd C. Miller
27a4c619bc
fix warning when no args
2001-11-02 20:51:18 +00:00
Todd C. Miller
717eb3fdf2
Change 2 Exit() -> exit()
...
Avoid stdio in Exit() and call _exit() if we are a signal handler.
We no longer print the signal number but the user can just check the
exit value for that.
2001-11-02 17:52:12 +00:00
Todd C. Miller
1fbc786d66
when setting up pipes in child process check for case where stdin == pipe fd 0
2001-10-16 05:35:26 +00:00
Todd C. Miller
d6e0c7049e
Ignore editor exit value since XPG4 says vi's exit value is the count
...
of editing errors made (failed searches, etc).
2001-10-11 17:20:33 +00:00
Todd C. Miller
d17da315a1
regen
2001-10-05 20:39:13 +00:00
Todd C. Miller
8fb718e7f4
sco now is identified by config.guess as *-sco-*
2001-10-05 20:39:05 +00:00
Todd C. Miller
89f2ab84d8
Check for getspnam() in -lgen if not in -lc for UnixWare.
2001-10-05 20:24:14 +00:00
Todd C. Miller
ace935f8aa
"upper case" -> "uppercase"
2001-09-18 01:48:48 +00:00
Todd C. Miller
51dd80bd78
fix typos and grammar; pjanzen@foatdi.harvard.edu
2001-09-18 01:32:35 +00:00
Todd C. Miller
12a9783318
Missing word (specify); krapht@secureops.com
2001-08-28 14:26:38 +00:00
Todd C. Miller
29871e4422
If we fail to lookup a login class, apply the default one.
2001-08-23 21:43:38 +00:00
Todd C. Miller
b31b73f071
In log_error() free message, not logline unconditionally, then
...
free logline if it is not the same as message. No function change
but this mirrors how they are allocated.
2001-08-23 21:42:31 +00:00
Todd C. Miller
944044e30d
regenerate
2001-07-17 03:33:57 +00:00
Todd C. Miller
7f8d2fb3e1
remove some backslash quotes that are unneeded
2001-07-17 03:33:48 +00:00
Todd C. Miller
4969fa5365
o Tweaks to make this work with autoconf-2.50
...
o Use AC_LIBOBJ instead of changing LIBOBJS directly
o Use AC_REPLACE_FUNCS where we can
o Use AC_CHECK_FUNCS instead of AC_CHECK_FUNC so we don't have to
AC_DEFINE things manually.
2001-07-17 03:30:30 +00:00
Todd C. Miller
cb79789ac0
Updated from autoconf-2.50
2001-07-17 03:28:31 +00:00
Todd C. Miller
0c3273aaf9
Update mailing list section. We use mailman now, not majordomo.
2001-05-22 23:11:21 +00:00
Todd C. Miller
11127e3468
Use setpwent()/endpwent() + all the shadow variants to make sure
...
we don't inadvertantly leak an fd to the child. Apparently Linux's
shadow routines leave the fd open even if you don't call setspent().
Reported by mike@gistnet.com ; different patch used.
2001-05-10 18:55:12 +00:00
Todd C. Miller
993409b90f
s/eg./e.g./
2001-04-13 01:43:40 +00:00
Todd C. Miller
2d9fb0a5ab
select() may return EAGAIN. If so, continue like we do for EINTR.
2001-04-13 01:42:50 +00:00