summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-02-09 22:17:28 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-02-09 22:17:28 +1100
commit33370e0287649c135eef8e7a0e22aee754deeac5 (patch)
tree420bda69a36e307b726dc99ae61e42572ffb415b /session.c
parentc7e38d59e906dcb8028deccac6793463c5ca8f5c (diff)
- (dtucker) [configure.ac session.c] Some platforms (eg some SCO) require
the username to be passed to the passwd command when changing expired passwords. ok djm@
Diffstat (limited to 'session.c')
-rw-r--r--session.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/session.c b/session.c
index a50bfcff7..1896e141f 100644
--- a/session.c
+++ b/session.c
@@ -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,