From owner-freebsd-ports Sat Sep 16 20:32:12 1995 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA22811 for ports-outgoing; Sat, 16 Sep 1995 20:32:12 -0700 Received: from mpp.minn.net (mpp.Minn.Net [204.157.201.242]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id UAA22803 for ; Sat, 16 Sep 1995 20:32:03 -0700 Received: (from mpp@localhost) by mpp.minn.net (8.6.11/8.6.9) id WAA22528 for freebsd-ports@freebsd.org; Sat, 16 Sep 1995 22:32:00 -0500 From: Mike Pritchard Message-Id: <199509170332.WAA22528@mpp.minn.net> Subject: wu-ftpd & expired accounts To: freebsd-ports@freebsd.org Date: Sat, 16 Sep 1995 22:31:59 -0500 (CDT) X-Mailer: ELM [version 2.4 PL24 ME7a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 647 Sender: owner-ports@freebsd.org Precedence: bulk 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"