Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b562d5401 | ||
|
|
d81ea20e1a | ||
|
|
bf7a29b64f | ||
|
|
6609de6d11 | ||
|
|
f148bb848f | ||
|
|
c4b99d4ec2 | ||
|
|
ca79b826ae | ||
|
|
68b1e4eebf | ||
|
|
bd5f26f25d |
@@ -1,9 +1,46 @@
|
||||
20040719
|
||||
- (tim) [configure.ac] updwtmpx() on OpenServer seems to add duplicate entry.
|
||||
Report by rac AT tenzing.org
|
||||
|
||||
20040711
|
||||
- (dtucker) [auth-pam.c] Check for zero from waitpid() too, which allows
|
||||
the monitor to properly clean up the PAM thread (Debian bug #252676).
|
||||
|
||||
20040708
|
||||
- (dtucker) OpenBSD CVS Sync
|
||||
- [email protected] 2004/07/08 12:47:21
|
||||
[scp.c]
|
||||
Prevent scp from skipping the file following a double-error.
|
||||
bz #863, ok markus@
|
||||
|
||||
20040623
|
||||
- (dtucker) [auth1.c] Ensure do_pam_account is called for Protocol 1
|
||||
connections with empty passwords. Patch from davidwu at nbttech.com,
|
||||
ok djm@
|
||||
|
||||
20040524
|
||||
- (dtucker) [auth-pam.c] Bug #839: Ensure that pam authentication "thread"
|
||||
is terminated if the privsep slave exits during keyboard-interactive
|
||||
authentication. ok djm@
|
||||
|
||||
20040513
|
||||
- (dtucker) [configure.ac] Bug #867: Additional tests for res_query in
|
||||
libresolv, fixes problems detecting it on some platforms
|
||||
(eg Linux/x86-64). From Kurt Roeckx via Debian, ok mouring@
|
||||
|
||||
20040423
|
||||
- (dtucker) [configure.ac openbsd-compat/getrrsetbyname.c] Declare h_errno
|
||||
as extern int if not already declared. Fixes compile errors on old SCO
|
||||
platforms. ok tim@
|
||||
- (dtucker) [README.platform] List prereqs for building on Cygwin.
|
||||
|
||||
20040418
|
||||
- (dtucker) [auth-pam.c] Log username and source host for failed PAM
|
||||
authentication attempts. With & ok djm@
|
||||
- (djm) [openbsd-compat/bsd-cygwin_util.c] Recent versions of Cygwin allow
|
||||
change of user context without a password, so relax auth method
|
||||
restrictions; from vinschen AT redhat.com; ok dtucker@
|
||||
- Release 3.8.1p1
|
||||
|
||||
20040416
|
||||
- (dtucker) [regress/sftp-cmds.sh] Skip quoting test on Cygwin, since
|
||||
@@ -982,4 +1019,4 @@
|
||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||
|
||||
$Id: ChangeLog,v 1.3316 2004/04/18 11:15:43 djm Exp $
|
||||
$Id: ChangeLog,v 1.3316.2.9 2004/07/19 17:20:30 tim Exp $
|
||||
|
||||
+9
-1
@@ -13,10 +13,18 @@ Accounts in this state must have their passwords reset manually by the
|
||||
administrator. As a precaution, it is recommended that the administrative
|
||||
passwords be reset before upgrading from OpenSSH <3.8.
|
||||
|
||||
|
||||
Cygwin
|
||||
------
|
||||
To build on Cygwin, OpenSSH requires the following packages:
|
||||
gcc, gcc-mingw-core, mingw-runtime, binutils, make, openssl,
|
||||
openssl-devel, zlib, minres, minires-devel.
|
||||
|
||||
|
||||
Solaris
|
||||
-------
|
||||
Currently, sshd does not support BSM auditting. This can show up as errors
|
||||
when editting cron entries via crontab. See.
|
||||
http://bugzilla.mindrot.org/show_bug.cgi?id=125
|
||||
|
||||
$Id: README.platform,v 1.1 2004/02/24 05:14:41 dtucker Exp $
|
||||
$Id: README.platform,v 1.1.6.1 2004/04/23 08:56:31 dtucker Exp $
|
||||
|
||||
+10
-3
@@ -31,7 +31,7 @@
|
||||
|
||||
/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
|
||||
#include "includes.h"
|
||||
RCSID("$Id: auth-pam.c,v 1.100 2004/04/18 01:00:26 dtucker Exp $");
|
||||
RCSID("$Id: auth-pam.c,v 1.100.2.2 2004/07/11 06:52:47 dtucker Exp $");
|
||||
|
||||
#ifdef USE_PAM
|
||||
#if defined(HAVE_SECURITY_PAM_APPL_H)
|
||||
@@ -93,10 +93,17 @@ static mysig_t sshpam_oldsig;
|
||||
static void
|
||||
sshpam_sigchld_handler(int sig)
|
||||
{
|
||||
signal(SIGCHLD, SIG_DFL);
|
||||
if (cleanup_ctxt == NULL)
|
||||
return; /* handler called after PAM cleanup, shouldn't happen */
|
||||
if (waitpid(cleanup_ctxt->pam_thread, &sshpam_thread_status, 0) == -1)
|
||||
return; /* couldn't wait for process */
|
||||
if (waitpid(cleanup_ctxt->pam_thread, &sshpam_thread_status, WNOHANG)
|
||||
<= 0) {
|
||||
/* PAM thread has not exitted, privsep slave must have */
|
||||
kill(cleanup_ctxt->pam_thread, SIGTERM);
|
||||
if (waitpid(cleanup_ctxt->pam_thread, &sshpam_thread_status, 0)
|
||||
<= 0)
|
||||
return; /* could not wait */
|
||||
}
|
||||
if (WIFSIGNALED(sshpam_thread_status) &&
|
||||
WTERMSIG(sshpam_thread_status) == SIGTERM)
|
||||
return; /* terminated by pthread_cancel */
|
||||
|
||||
@@ -81,8 +81,13 @@ do_authloop(Authctxt *authctxt)
|
||||
(!options.kerberos_authentication || options.kerberos_or_local_passwd) &&
|
||||
#endif
|
||||
PRIVSEP(auth_password(authctxt, ""))) {
|
||||
auth_log(authctxt, 1, "without authentication", "");
|
||||
return;
|
||||
#ifdef USE_PAM
|
||||
if (options.use_pam && (PRIVSEP(do_pam_account())))
|
||||
#endif
|
||||
{
|
||||
auth_log(authctxt, 1, "without authentication", "");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Indicate that authentication is needed. */
|
||||
|
||||
+23
-1
@@ -1,4 +1,4 @@
|
||||
# $Id: configure.ac,v 1.214 2004/04/17 03:03:07 tim Exp $
|
||||
# $Id: configure.ac,v 1.214.2.3 2004/07/19 17:20:30 tim Exp $
|
||||
#
|
||||
# Copyright (c) 1999-2004 Damien Miller
|
||||
#
|
||||
@@ -381,6 +381,7 @@ mips-sony-bsd|mips-sony-newsos4)
|
||||
AC_DEFINE(BROKEN_SETREUID)
|
||||
AC_DEFINE(BROKEN_SETREGID)
|
||||
AC_DEFINE(WITH_ABBREV_NO_TTY)
|
||||
AC_DEFINE(BROKEN_UPDWTMPX)
|
||||
AC_CHECK_FUNCS(getluid setluid)
|
||||
MANTYPE=man
|
||||
;;
|
||||
@@ -860,6 +861,8 @@ AC_CHECK_DECL(tcsendbreak,
|
||||
[#include <termios.h>]
|
||||
)
|
||||
|
||||
AC_CHECK_DECLS(h_errno, , ,[#include <netdb.h>])
|
||||
|
||||
AC_CHECK_FUNCS(setresuid, [
|
||||
dnl Some platorms have setresuid that isn't implemented, test for this
|
||||
AC_MSG_CHECKING(if setresuid seems to work)
|
||||
@@ -2154,6 +2157,25 @@ AC_SEARCH_LIBS(getrrsetbyname, resolv,
|
||||
# Needed by our getrrsetbyname()
|
||||
AC_SEARCH_LIBS(res_query, resolv)
|
||||
AC_SEARCH_LIBS(dn_expand, resolv)
|
||||
AC_MSG_CHECKING(if res_query will link)
|
||||
AC_TRY_LINK_FUNC(res_query, AC_MSG_RESULT(yes),
|
||||
[AC_MSG_RESULT(no)
|
||||
saved_LIBS="$LIBS"
|
||||
LIBS="$LIBS -lresolv"
|
||||
AC_MSG_CHECKING(for res_query in -lresolv)
|
||||
AC_LINK_IFELSE([
|
||||
#include <resolv.h>
|
||||
int main()
|
||||
{
|
||||
res_query (0, 0, 0, 0, 0);
|
||||
return 0;
|
||||
}
|
||||
],
|
||||
[LIBS="$LIBS -lresolv"
|
||||
AC_MSG_RESULT(yes)],
|
||||
[LIBS="$saved_LIBS"
|
||||
AC_MSG_RESULT(no)])
|
||||
])
|
||||
AC_CHECK_FUNCS(_getshort _getlong)
|
||||
AC_CHECK_MEMBER(HEADER.ad,
|
||||
[AC_DEFINE(HAVE_HEADER_AD)],,
|
||||
|
||||
@@ -53,6 +53,10 @@
|
||||
|
||||
#define ANSWER_BUFFER_SIZE 1024*64
|
||||
|
||||
#if !HAVE_DECL_H_ERROR
|
||||
extern int h_errno;
|
||||
#endif
|
||||
|
||||
struct dns_query {
|
||||
char *name;
|
||||
u_int16_t type;
|
||||
|
||||
@@ -938,21 +938,25 @@ bad: run_err("%s: %s", np, strerror(errno));
|
||||
if (pflag) {
|
||||
if (exists || omode != mode)
|
||||
#ifdef HAVE_FCHMOD
|
||||
if (fchmod(ofd, omode))
|
||||
if (fchmod(ofd, omode)) {
|
||||
#else /* HAVE_FCHMOD */
|
||||
if (chmod(np, omode))
|
||||
if (chmod(np, omode)) {
|
||||
#endif /* HAVE_FCHMOD */
|
||||
run_err("%s: set mode: %s",
|
||||
np, strerror(errno));
|
||||
wrerr = DISPLAYED;
|
||||
}
|
||||
} else {
|
||||
if (!exists && omode != mode)
|
||||
#ifdef HAVE_FCHMOD
|
||||
if (fchmod(ofd, omode & ~mask))
|
||||
if (fchmod(ofd, omode & ~mask)) {
|
||||
#else /* HAVE_FCHMOD */
|
||||
if (chmod(np, omode & ~mask))
|
||||
if (chmod(np, omode & ~mask)) {
|
||||
#endif /* HAVE_FCHMOD */
|
||||
run_err("%s: set mode: %s",
|
||||
np, strerror(errno));
|
||||
wrerr = DISPLAYED;
|
||||
}
|
||||
}
|
||||
if (close(ofd) == -1) {
|
||||
wrerr = YES;
|
||||
|
||||
Reference in New Issue
Block a user