]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Merge changes on HEAD to 2.5.2 branch
authorDamien Miller <djm@mindrot.org>
Wed, 21 Mar 2001 02:12:12 +0000 (13:12 +1100)
committerDamien Miller <djm@mindrot.org>
Wed, 21 Mar 2001 02:12:12 +0000 (13:12 +1100)
ChangeLog
Makefile.in
TODO
auth-pam.c
session.c

index 219303a4b76f66d8a700f128e7a4a9dfc110d932..a4279671ffddfaa0f62c9cb4b1f1a6637a7ec3e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+20010321
+ - (djm) Fix ttyname breakage for AIX and Tru64. Patch from Steve 
+   VanDevender <stevev@darkwing.uoregon.edu>
+ - (djm) Make sure pam_retval is initialised on call to pam_end. Patch
+   from Solar Designer <solar@openwall.com>
+ - (djm) Don't loop forever when changing password via PAM. Patch
+   from Solar Designer <solar@openwall.com>
+ - (djm) Generate config files before build
+
 20010320
  - (bal) glob.c update to added GLOB_LIMITS (OpenBSD CVS).
  - (bal) glob.c update to set gl_pathv to NULL (OpenBSD CVS).
  - Wrote replacements for strlcpy and mkdtemp
  - Released 1.0pre1
 
-$Id: ChangeLog,v 1.991.2.2 2001/03/20 04:49:46 tim Exp $
+$Id: ChangeLog,v 1.991.2.3 2001/03/21 02:12:12 djm Exp $
index 2fd16be44d4d0f744de81d70b88a9797ca4de9fe..e01204154008d258e73cc2845a3a6324f0a2c3c4 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.161 2001/03/14 00:39:46 djm Exp $
+# $Id: Makefile.in,v 1.161.2.1 2001/03/21 02:12:12 djm Exp $
 
 prefix=@prefix@
 exec_prefix=@exec_prefix@
@@ -73,7 +73,7 @@ PATHSUBS      = \
 
 FIXPATHSCMD    = $(PERL) $(srcdir)/fixpaths $(PATHSUBS)
 
-all: $(TARGETS) $(CONFIGFILES)
+all: $(CONFIGFILES) $(TARGETS) 
 
 manpages: $(MANPAGES)
 
diff --git a/TODO b/TODO
index 60f62560d5aed64d1e0f8d357275d2b19a15346a..ac653212447776c583cec0bee1549c898c49cc56 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,6 +1,9 @@
 Programming:
 - Grep for 'XXX' comments and fix
 
+- Link order is incorrect for some systems using Kerberos 4 and AFS. Result
+is multiple inclusion of DES symbols.
+
 - Integrate contrib/mdoc2man.pl so platforms which only have the troff 
   'an' macros can have readable manpages.
 
@@ -79,4 +82,4 @@ Packaging:
 - HP-UX: Provide DEPOT package scripts.
   (gilbert.r.loomis@saic.com)
 
-$Id: TODO,v 1.38 2001/03/19 14:58:47 stevesk Exp $
+$Id: TODO,v 1.38.2.1 2001/03/21 02:12:12 djm Exp $
index ce49845320978192222ac0436aae1174987b8c26..d283f24a5aee924f292e60708156e1933015b520 100644 (file)
@@ -33,7 +33,7 @@
 #include "canohost.h"
 #include "readpass.h"
 
-RCSID("$Id: auth-pam.c,v 1.31 2001/02/28 22:18:58 djm Exp $");
+RCSID("$Id: auth-pam.c,v 1.31.2.1 2001/03/21 02:12:13 djm Exp $");
 
 #define NEW_AUTHTOK_MSG \
        "Warning: Your password has expired, please change it now"
@@ -172,7 +172,7 @@ static int do_pam_conversation(int num_msg, const struct pam_message **msg,
 /* Called at exit to cleanly shutdown PAM */
 void do_pam_cleanup_proc(void *context)
 {
-       int pam_retval;
+       int pam_retval = PAM_SUCCESS;
 
        if (__pamh && session_opened) {
                pam_retval = pam_close_session(__pamh, 0);
@@ -326,14 +326,10 @@ void do_pam_chauthtok(void)
 
        if (password_change_required) {
                pamstate = OTHER;
-               /* XXX: should we really loop forever? */
-               do {
-                       pam_retval = pam_chauthtok(__pamh, 
-                           PAM_CHANGE_EXPIRED_AUTHTOK);
-                       if (pam_retval != PAM_SUCCESS)
-                               log("PAM pam_chauthtok failed[%d]: %.200s",
-                                   pam_retval, PAM_STRERROR(__pamh, pam_retval));
-               } while (pam_retval != PAM_SUCCESS);
+               pam_retval = pam_chauthtok(__pamh, PAM_CHANGE_EXPIRED_AUTHTOK);
+               if (pam_retval != PAM_SUCCESS)
+                       fatal("PAM pam_chauthtok failed[%d]: %.200s",
+                           pam_retval, PAM_STRERROR(__pamh, pam_retval));
        }
 }
 
index 9c4828ac7ca5092945e72414d118ffe19a598c10..31a16dc7cf4105900eedcdca858bf17276c2ad1a 100644 (file)
--- a/session.c
+++ b/session.c
@@ -1053,7 +1053,7 @@ do_child(Session *s, const char *command)
           switch, so we let login(1) to this for us. */
        if (!options.use_login) {
 #ifdef HAVE_OSF_SIA
-               session_setup_sia(pw->pw_name, ttyname);
+               session_setup_sia(pw->pw_name, s->tty);
 #else /* HAVE_OSF_SIA */
 #ifdef HAVE_CYGWIN
                if (is_winnt) {
@@ -1134,10 +1134,10 @@ do_child(Session *s, const char *command)
                         * other stuff is stored - a few applications
                         * actually use this and die if it's not set
                         */
-                       cp = xmalloc(22 + strlen(ttyname) + 
+                       cp = xmalloc(22 + strlen(s->tty) + 
                            2 * strlen(pw->pw_name));
                        i = sprintf(cp, "LOGNAME=%s%cNAME=%s%cTTY=%s%c%c",
-                           pw->pw_name, 0, pw->pw_name, 0, ttyname, 0,0);
+                           pw->pw_name, 0, pw->pw_name, 0, s->tty, 0,0);
                        if (usrinfo(SETUINFO, cp, i) == -1)
                                fatal("Couldn't set usrinfo: %s", 
                                    strerror(errno));