1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/security/openssh/files/patch-av
Brian Feldman c512ae8ac9 Update to OpenSSH 2.2.0. This is an end-of-life update for the
ports-based OpenSSH.  OpenSSH has been in the base system for more
than long enough to justify not having to maintain two separate
FreeBSD versions of OpenSSH.
2000-11-04 23:04:25 +00:00

20 lines
447 B
Plaintext

--- auth.c.orig Sat Nov 4 17:30:17 2000
+++ auth.c Sat Nov 4 17:29:00 2000
@@ -111,6 +111,16 @@
return 0;
}
}
+#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;
}