From 838992f094ccde014679a7cfafc495840eb932a1 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Tue, 16 Feb 1999 01:59:46 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'RELENG_3_1_0_RELEASE'. This commit was manufactured to restore the state of the 3.1-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs. --- crypto/kerberosIV/appl/bsd/sysv_shadow.c | 45 -------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 crypto/kerberosIV/appl/bsd/sysv_shadow.c (limited to 'crypto/kerberosIV/appl/bsd/sysv_shadow.c') diff --git a/crypto/kerberosIV/appl/bsd/sysv_shadow.c b/crypto/kerberosIV/appl/bsd/sysv_shadow.c deleted file mode 100644 index 68394414129c5..0000000000000 --- a/crypto/kerberosIV/appl/bsd/sysv_shadow.c +++ /dev/null @@ -1,45 +0,0 @@ -/* Author: Wietse Venema */ - -#include "bsd_locl.h" - -RCSID("$Id: sysv_shadow.c,v 1.7 1997/03/23 04:56:05 assar Exp $"); - -#ifdef SYSV_SHADOW - -#include - -/* sysv_expire - check account and password expiration times */ - -int -sysv_expire(struct spwd *spwd) -{ - long today; - - tzset(); - today = time(0); - - if (spwd->sp_expire > 0) { - if (today > spwd->sp_expire) { - printf("Your account has expired.\n"); - sleepexit(1); - } else if (spwd->sp_expire - today < 14) { - printf("Your account will expire in %d days.\n", - (int)(spwd->sp_expire - today)); - return (0); - } - } - if (spwd->sp_max > 0) { - if (today > (spwd->sp_lstchg + spwd->sp_max)) { - printf("Your password has expired. Choose a new one.\n"); - return (1); - } else if (spwd->sp_warn > 0 - && (today > (spwd->sp_lstchg + spwd->sp_max - spwd->sp_warn))) { - printf("Your password will expire in %d days.\n", - (int)(spwd->sp_lstchg + spwd->sp_max - today)); - return (0); - } - } - return (0); -} - -#endif /* SYSV_SHADOW */ -- cgit v1.2.3