mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-25 21:07:40 +00:00
c512ae8ac9
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.
20 lines
447 B
Plaintext
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;
|
|
}
|