From 6a294c20389911c409eb5f6f05033eaf6c6975ab Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Sun, 1 Jun 2003 23:49:18 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'RELEASE_5_1_0'. --- security/hpn-ssh/files/patch-auth.c | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 security/hpn-ssh/files/patch-auth.c (limited to 'security/hpn-ssh/files/patch-auth.c') diff --git a/security/hpn-ssh/files/patch-auth.c b/security/hpn-ssh/files/patch-auth.c deleted file mode 100644 index e8f640a16936..000000000000 --- a/security/hpn-ssh/files/patch-auth.c +++ /dev/null @@ -1,29 +0,0 @@ ---- 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; - } -@@ -490,7 +480,7 @@ - if (pw == NULL || !allowed_user(pw)) - return (NULL); - #ifdef HAVE_LOGIN_CAP -- if ((lc = login_getclass(pw->pw_class)) == NULL) { -+ if ((lc = login_getpwclass(pw)) == NULL) { - debug("unable to get login class: %s", user); - return (NULL); - } -- cgit v1.2.3