summaryrefslogtreecommitdiff
path: root/security/openssh-portable/files/patch-auth.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2001-06-01 14:49:36 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2001-06-01 14:49:36 +0000
commit5cbc48b2d7fe78d13208d12ed5498d5c7f337ed1 (patch)
treea1039bddf485c683ef0b392748d4211e50076186 /security/openssh-portable/files/patch-auth.c
parentAdd jisx0213-fonts 1.03, Japanese jisx0213 fonts. (diff)
New port:
OpenSSH portable, which has GNU-configure and more. Diffs to OpenSSH-OPenBSD are huge. So this is here a complete diffrent branch, no repro-copy - Did a bit cleanup in the Makefile Submitted by: dwcjr@inethouston.net
Notes
Notes: svn path=/head/; revision=43393
Diffstat (limited to 'security/openssh-portable/files/patch-auth.c')
-rw-r--r--security/openssh-portable/files/patch-auth.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/security/openssh-portable/files/patch-auth.c b/security/openssh-portable/files/patch-auth.c
new file mode 100644
index 000000000000..99c9d0c1550e
--- /dev/null
+++ b/security/openssh-portable/files/patch-auth.c
@@ -0,0 +1,20 @@
+--- auth.c.orig Mon Mar 19 23:15:57 2001
++++ auth.c Fri Jun 1 07:59:43 2001
+@@ -158,6 +158,17 @@
+ }
+ #endif /* WITH_AIXAUTHENTICATE */
+
++#ifdef __FreeBSD__
++ /* Fail if the account's expiration time has passed. */
++ if (pw->pw_expire != 0) {
++ struct timeval tv;
++
++ (void)gettimeofday(&tv, NULL);
++ if (tv.tv_sec >= pw->pw_expire)
++ return 0;
++ }
++#endif /* __FreeBSD__ */
++
+ /* We found no reason not to let this user try to log on... */
+ return 1;
+ }