blob: bcba47e64b8c876140f1b12592fa2b6bd0d896e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- auth.c.orig Tue Mar 5 02:42:43 2002
+++ auth.c Sun Mar 17 20:53:15 2002
@@ -193,6 +193,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;
}
|