diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | session.c | 5 |
3 files changed, 11 insertions, 2 deletions
@@ -23,6 +23,9 @@ | |||
23 | to resolve it for binaries other than sshd. ok djm@ | 23 | to resolve it for binaries other than sshd. ok djm@ |
24 | - (dtucker) [configure.ac] Bug #854: prepend pwd to relative --with-ssl-dir | 24 | - (dtucker) [configure.ac] Bug #854: prepend pwd to relative --with-ssl-dir |
25 | paths. ok djm@ | 25 | paths. ok djm@ |
26 | - (dtucker) [configure.ac session.c] Some platforms (eg some SCO) require | ||
27 | the username to be passed to the passwd command when changing expired | ||
28 | passwords. ok djm@ | ||
26 | 29 | ||
27 | 20050208 | 30 | 20050208 |
28 | - (dtucker) [regress/test-exec.sh] Bug #912: Set _POSIX2_VERSION for the | 31 | - (dtucker) [regress/test-exec.sh] Bug #912: Set _POSIX2_VERSION for the |
@@ -2112,4 +2115,4 @@ | |||
2112 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 2115 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
2113 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 2116 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
2114 | 2117 | ||
2115 | $Id: ChangeLog,v 1.3646 2005/02/09 11:12:30 dtucker Exp $ | 2118 | $Id: ChangeLog,v 1.3647 2005/02/09 11:17:28 dtucker Exp $ |
diff --git a/configure.ac b/configure.ac index 3ccbbaf0c..e79e89ac2 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.238 2005/02/09 11:12:31 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.239 2005/02/09 11:17:28 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -403,6 +403,7 @@ mips-sony-bsd|mips-sony-newsos4) | |||
403 | AC_DEFINE(BROKEN_SETREGID) | 403 | AC_DEFINE(BROKEN_SETREGID) |
404 | AC_DEFINE(WITH_ABBREV_NO_TTY) | 404 | AC_DEFINE(WITH_ABBREV_NO_TTY) |
405 | AC_DEFINE(BROKEN_UPDWTMPX) | 405 | AC_DEFINE(BROKEN_UPDWTMPX) |
406 | AC_DEFINE(PASSWD_NEEDS_USERNAME, 1, [must supply username to passwd]) | ||
406 | AC_CHECK_FUNCS(getluid setluid) | 407 | AC_CHECK_FUNCS(getluid setluid) |
407 | MANTYPE=man | 408 | MANTYPE=man |
408 | TEST_SHELL=ksh | 409 | TEST_SHELL=ksh |
@@ -1346,7 +1346,12 @@ do_pwchange(Session *s) | |||
1346 | if (s->ttyfd != -1) { | 1346 | if (s->ttyfd != -1) { |
1347 | fprintf(stderr, | 1347 | fprintf(stderr, |
1348 | "You must change your password now and login again!\n"); | 1348 | "You must change your password now and login again!\n"); |
1349 | #ifdef PASSWD_NEEDS_USERNAME | ||
1350 | execl(_PATH_PASSWD_PROG, "passwd", s->pw->pw_name, | ||
1351 | (char *)NULL); | ||
1352 | #else | ||
1349 | execl(_PATH_PASSWD_PROG, "passwd", (char *)NULL); | 1353 | execl(_PATH_PASSWD_PROG, "passwd", (char *)NULL); |
1354 | #endif | ||
1350 | perror("passwd"); | 1355 | perror("passwd"); |
1351 | } else { | 1356 | } else { |
1352 | fprintf(stderr, | 1357 | fprintf(stderr, |