Blame openssh-5.8p1-pwchange.patch
|
Jan F |
3f220f |
diff -up openssh-5.8p1/session.c.pwchange openssh-5.8p1/session.c
|
|
Jan F |
3f220f |
--- openssh-5.8p1/session.c.pwchange 2011-03-31 17:54:18.637695183 +0200
|
|
Jan F |
3f220f |
+++ openssh-5.8p1/session.c 2011-03-31 17:56:12.281684766 +0200
|
|
Jan F |
3f220f |
@@ -1552,12 +1552,17 @@ do_pwchange(Session *s)
|
|
Jan F |
3f220f |
if (s->ttyfd != -1) {
|
|
Jan F |
3f220f |
fprintf(stderr,
|
|
Jan F |
3f220f |
"You must change your password now and login again!\n");
|
|
Jan F |
3f220f |
+#ifdef __linux__
|
|
Jan F |
8ecc9b |
+ execl("/bin/sh", "sh", "-c", _PATH_PASSWD_PROG, s->pw->pw_name,
|
|
Jan F |
3f220f |
+ (char *)NULL);
|
|
Jan F |
3f220f |
+#else
|
|
Jan F |
3f220f |
#ifdef PASSWD_NEEDS_USERNAME
|
|
Jan F |
3f220f |
execl(_PATH_PASSWD_PROG, "passwd", s->pw->pw_name,
|
|
Jan F |
3f220f |
(char *)NULL);
|
|
Jan F |
3f220f |
#else
|
|
Jan F |
3f220f |
execl(_PATH_PASSWD_PROG, "passwd", (char *)NULL);
|
|
Jan F |
3f220f |
#endif
|
|
Jan F |
3f220f |
+#endif
|
|
Jan F |
3f220f |
perror("passwd");
|
|
Jan F |
3f220f |
} else {
|
|
Jan F |
3f220f |
fprintf(stderr,
|