Commit Graph

2774 Commits

Author SHA1 Message Date
Todd C. Miller
da7384a0ea regen 2002-04-25 15:36:12 +00:00
Todd C. Miller
8536699843 Sync with 1.6.6 2002-04-25 15:31:58 +00:00
Todd C. Miller
db63aefb21 The the loop used to expand %h and %u, the lastchar variable was not being
initialized.  This means that if the last char in the prompt is '%' and the
first char is 'h' or 'u' a extra copy of the host or user name would be
copied, for which space had not been allocated.
2002-04-25 15:30:12 +00:00
Todd C. Miller
d9bb746dff crank version to 1.6.6 2002-04-18 15:41:30 +00:00
Todd C. Miller
763db0e631 #undef VOID to get rid of an AFS warning 2002-04-18 15:39:19 +00:00
Todd C. Miller
a576207620 Use easprintf instead of emalloc + sprintf for some things. 2002-04-18 15:38:52 +00:00
Todd C. Miller
08ee411a6b regen 2002-03-16 00:45:48 +00:00
Todd C. Miller
7cc2f3b3e5 Remove Chris Jepeway's email address so people don't bug him ;-) 2002-03-16 00:44:48 +00:00
Todd C. Miller
99cc62452d Move endpwent() to be after set_perms(PERM_RUNAS, ...) and also call
endgrent() at the same time.
2002-03-12 03:19:04 +00:00
Todd C. Miller
1c23b1b68a Make it clear which configure options take arguments. 2002-02-22 03:23:05 +00:00
Todd C. Miller
d1bb1bc099 HP-UX 9.x has RLIMIT_* but no RLIM_INFINITY. If there is no
RLIM_INFINITY, just pretend it is -1.  This works because we only
check for RLIM_INFINITY and do not set anything to that value.
2002-01-25 18:38:22 +00:00
Todd C. Miller
ef1f01874c Zero and free allocated memory when there is a conversation error. 2002-01-22 16:43:23 +00:00
Todd C. Miller
33efe1270f Use sigaction() not signal() 2002-01-22 03:37:55 +00:00
Todd C. Miller
da6aa61574 Mention that some linux kernels have broken POSIX saved ID support 2002-01-22 03:26:50 +00:00
Todd C. Miller
1ec9784bee checkpoint for 1.6.5p2 2002-01-22 02:03:25 +00:00
Todd C. Miller
7748f4b4e9 regen 2002-01-22 02:01:15 +00:00
Todd C. Miller
5a186c346c Add --disable-setreuid flag 2002-01-22 02:01:09 +00:00
Todd C. Miller
2292a1d2f0 Document new --disable-setreuid option and change description for
--disable-saved-ids to match new error message.
2002-01-22 02:00:56 +00:00
Todd C. Miller
bf0aa0ae71 fatal() now takes an argument that determines whether or not to call
perror().
2002-01-22 02:00:25 +00:00
Todd C. Miller
86a50f8cad Update for new error messages from set_perms() 2002-01-22 01:58:42 +00:00
Todd C. Miller
6dea05aa26 Update for new error messages from set_perms() 2002-01-22 01:58:42 +00:00
Todd C. Miller
d195bd7f1b Make this compile w/o warnings 2002-01-21 22:46:02 +00:00
Todd C. Miller
a61088a434 Mention that we can't use pam_acct_mgmt() 2002-01-21 22:36:33 +00:00
Todd C. Miller
0ebe32423f The user's password was not zeroed after use when AIX authentication,
BSD authentication, FWTK or PAM was in use.
2002-01-21 22:25:14 +00:00
Todd C. Miller
73979f1a24 Avoid giving PAM a NULL password response, use the empty string instead.
This avoids a log warning when the user hits ^C at the password prompt
when PAM is in use.
2002-01-20 19:21:33 +00:00
Todd C. Miller
3a6c0ea2e6 Don't check the return value of pam_setcred(). In Linux-PAM 0.75
pam_setcred() returns the last saved return code, not the return
code for the setcred module.  Because we haven't called pam_authenticate(),
this is not set and so pam_setcred() returns PAM_PERM_DENIED.
2002-01-20 00:46:44 +00:00
Todd C. Miller
3646887d52 Don't need a '/' between $(DESTDIR) and a directory. 2002-01-20 00:43:16 +00:00
Todd C. Miller
839cd24a80 Don't need a '/' between $(DESTDIR) and a directory. 2002-01-20 00:43:16 +00:00
Todd C. Miller
c0eb8bfd9a regen 2002-01-18 19:18:57 +00:00
Todd C. Miller
1c91394578 o BSDi also has a bogus setreuid()
o Old FreeBSD has a bogus setreuid()
o new NetBSD has a real setreuid()
o add check for freeifaddrs() if getifaddrs() exists.
2002-01-18 19:18:39 +00:00
Todd C. Miller
35014b44bc Older BSDi releases lack freeifaddrs() so add a test for that and if
it is not present just use free().
2002-01-18 19:17:07 +00:00
Todd C. Miller
10a86c7711 Checkpoint for 1.6.5p1 2002-01-17 16:30:53 +00:00
Todd C. Miller
05d1f02909 Return AUTH_FAILURE in passwd_init() if skeyaccess() denies access
to normal passwords, not AUTH_FATAL (which just causes an exit).
2002-01-17 15:56:15 +00:00
Todd C. Miller
1b6bfbf452 Don't use memory after it has been freed. 2002-01-17 15:35:54 +00:00
Todd C. Miller
437464847c skeyaccess() wants a struct passwd * not a char *; Patch from Phillip E. Lobbes 2002-01-17 05:24:28 +00:00
Todd C. Miller
aba0e43daa ++version 2002-01-17 01:00:53 +00:00
Todd C. Miller
ea2bfc5fd6 checkpoint for sudo 1.6.5 2002-01-17 00:53:58 +00:00
Todd C. Miller
a7a5dc39f4 regen 2002-01-16 23:37:43 +00:00
Todd C. Miller
b72dadcb95 version 1.6.5 2002-01-16 23:37:34 +00:00
Todd C. Miller
16472afa0d sudo version 1.6.5 2002-01-16 23:37:01 +00:00
Todd C. Miller
261f819073 o when invoking the mailer as root use a hard-coded environment that
doesn't include any info from the user's environment.  Basically
  paranoia.

o Add support for the NO_ROOT_MAILER compile-time option and run the
  mailer as the user and not root if NO_ROOT_MAILER is defined.
2002-01-16 21:28:25 +00:00
Todd C. Miller
fec1b63caa Bring back PERM_FULL_USER 2002-01-16 21:27:09 +00:00
Todd C. Miller
7b2219c085 regen 2002-01-16 21:26:47 +00:00
Todd C. Miller
4d48d93a7b version 1.6.5 2002-01-16 21:26:27 +00:00
Todd C. Miller
0aac4f03b7 Add --disable-root-mailer option to run the mailer as the user and not root. 2002-01-16 21:26:13 +00:00
Todd C. Miller
5694aa5320 checkpoint for 1.6.4p2 2002-01-16 17:44:11 +00:00
Todd C. Miller
c12bb733b4 Mention the "seteuid(0): Operation not permitted" problem here too
just for good measure.
2002-01-16 00:22:21 +00:00
Todd C. Miller
ea24bef19c The SHELL environment variable was preserved from the user's
environment instead of being reset based on the passwd database
when the "env_reset" option was used.  Now it is reset as it should be.
2002-01-15 23:43:59 +00:00
Todd C. Miller
5236ceedf7 regen 2002-01-15 22:47:38 +00:00
Todd C. Miller
f039427253 Add a configure option to turn off use of POSIX saved IDs 2002-01-15 22:47:29 +00:00