summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-10-26 19:44:39 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-10-26 19:44:39 +0000
commitb86c05807bb0cfe46f77c4e32b87bb06608382fa (patch)
treea6d42be66252e14e931014332c5cef54e9741ba3 /lib/libc/gen
parentcafbf7ce94459198fd9449da2faea10eedf9c957 (diff)
run the approve for accounts with expiration time, too. ok millert@
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/authenticate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/authenticate.c b/lib/libc/gen/authenticate.c
index a0da2831bcd..b85908ebb12 100644
--- a/lib/libc/gen/authenticate.c
+++ b/lib/libc/gen/authenticate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authenticate.c,v 1.5 2001/07/09 06:57:42 deraadt Exp $ */
+/* $OpenBSD: authenticate.c,v 1.6 2001/10/26 19:44:38 markus Exp $ */
/*-
* Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved.
@@ -245,7 +245,7 @@ auth_approval(auth_session_t *as, login_cap_t *lc, char *name, char *type)
_warn(NULL);
goto out;
}
- if (auth_check_expire(as)) /* is this account expired */
+ if (auth_check_expire(as) < 0) /* is this account expired */
goto out;
if (_auth_checknologin(lc,
auth_getitem(as, AUTHV_INTERACTIVE) != NULL)) {