diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-02-09 22:17:28 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-02-09 22:17:28 +1100 |
commit | 33370e0287649c135eef8e7a0e22aee754deeac5 (patch) | |
tree | 420bda69a36e307b726dc99ae61e42572ffb415b /session.c | |
parent | c7e38d59e906dcb8028deccac6793463c5ca8f5c (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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, |