Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Sep 1995 22:31:59 -0500 (CDT)
From:      Mike Pritchard <mpp@mpp.minn.net>
To:        freebsd-ports@freebsd.org
Subject:   wu-ftpd & expired accounts
Message-ID:  <199509170332.WAA22528@mpp.minn.net>

next in thread | raw e-mail | index | archive | help
Could whoever is maintaining the wu-ftpd port please add
the following patch to disallow access to expired accounts?
Thanks.

*** src/ftpd.c.orig	Sat Sep 16 22:10:04 1995
--- src/ftpd.c	Sat Sep 16 22:11:56 1995
***************
*** 1042,1047 ****
--- 1042,1048 ----
  #else
          /* The strcmp does not catch null passwords! */
          if (pw == NULL || *pw->pw_passwd == '\0' ||
+ 	    (pw->pw_expire && time(NULL) >= pw->pw_expire) ||
              strcmp(xpasswd, pw->pw_passwd)) {
  #endif
              reply(530, "Login incorrect.");
-- 
Mike Pritchard
mpp@mpp.minn.net
"Go that way.  Really fast.  If something gets in your way, turn"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509170332.WAA22528>