summaryrefslogtreecommitdiffstats
path: root/crypto/kerberosIV/appl/bsd/sysv_shadow.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2003-03-08 12:55:48 +0000
committermarkm <markm@FreeBSD.org>2003-03-08 12:55:48 +0000
commit508deb59f881236ef37872f9bd311690d6f5a52f (patch)
tree5248199756c9c4bedc55a990ad63d4d2cb595d51 /crypto/kerberosIV/appl/bsd/sysv_shadow.c
parent98c95b963a4c3a3fc5d30f7a902a7f28f001b2b8 (diff)
downloadFreeBSD-src-508deb59f881236ef37872f9bd311690d6f5a52f.zip
FreeBSD-src-508deb59f881236ef37872f9bd311690d6f5a52f.tar.gz
KerberosIV deorbit sequence: Re-entry. Thank you, faithful friend.
Enjoy your retirement in ports.
Diffstat (limited to 'crypto/kerberosIV/appl/bsd/sysv_shadow.c')
-rw-r--r--crypto/kerberosIV/appl/bsd/sysv_shadow.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/crypto/kerberosIV/appl/bsd/sysv_shadow.c b/crypto/kerberosIV/appl/bsd/sysv_shadow.c
deleted file mode 100644
index 99794bd..0000000
--- a/crypto/kerberosIV/appl/bsd/sysv_shadow.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Author: Wietse Venema <wietse@wzv.win.tue.nl> */
-
-#include "bsd_locl.h"
-
-RCSID("$Id: sysv_shadow.c,v 1.8 1997/12/29 19:56:07 bg Exp $");
-
-#ifdef SYSV_SHADOW
-
-#include <sysv_shadow.h>
-
-/* sysv_expire - check account and password expiration times */
-
-int
-sysv_expire(struct spwd *spwd)
-{
- long today;
-
- tzset();
- today = time(0)/(60*60*24); /* In days since Jan. 1, 1970 */
-
- 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 */
OpenPOWER on IntegriCloud