diff options
| author | Dirk Meyer <dinoex@FreeBSD.org> | 2001-06-10 20:01:52 +0000 |
|---|---|---|
| committer | Dirk Meyer <dinoex@FreeBSD.org> | 2001-06-10 20:01:52 +0000 |
| commit | 3934d71996c73ac3106d2602bbeb86cfd8b66237 (patch) | |
| tree | 64e83df49f60c114744a7f86b2a5f71f40de2d74 /security/openssh/files/patch-au | |
| parent | Remove myself from MAINTAINER (diff) | |
- Fix FreeBSD specific patch, exit now if change of password fails.
Forwarded by dwcjr
Submitted by: Udo.Schweigert@cert.siemens.de
Notes
Notes:
svn path=/head/; revision=43776
Diffstat (limited to 'security/openssh/files/patch-au')
| -rw-r--r-- | security/openssh/files/patch-au | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/security/openssh/files/patch-au b/security/openssh/files/patch-au index 9a63dcabe805..23d255a0f62a 100644 --- a/security/openssh/files/patch-au +++ b/security/openssh/files/patch-au @@ -1,5 +1,5 @@ --- session.c.orig Tue Apr 17 21:34:25 2001 -+++ session.c Sat May 26 15:45:15 2001 ++++ session.c Sun Jun 10 19:42:13 2001 @@ -58,6 +58,12 @@ #include "canohost.h" #include "session.h" @@ -84,7 +84,7 @@ close(i); /* Change current directory to the user\'s home directory. */ -@@ -1051,6 +1091,26 @@ +@@ -1051,6 +1091,28 @@ * in this order). */ if (!options.use_login) { @@ -103,8 +103,10 @@ + syslog(LOG_INFO, + "%s Password expired - forcing change", + pw->pw_name); -+ if (system("/usr/bin/passwd") != 0) ++ if (system("/usr/bin/passwd") != 0) { + perror("/usr/bin/passwd"); ++ exit(1); ++ } + } + } +#endif /* __FreeBSD__ */ |
