summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
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,