summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1995-08-28 21:30:59 +0000
committermpp <mpp@FreeBSD.org>1995-08-28 21:30:59 +0000
commit684146e8cecf2a925a3b2281a218c99678a04171 (patch)
tree67278d75d3abf5f6772c71401cc931a0c8700dee /libexec/ftpd
parent3e1e7bcd42e9e4ca3c52ddefa6bc62b4df57add2 (diff)
downloadFreeBSD-src-684146e8cecf2a925a3b2281a218c99678a04171.zip
FreeBSD-src-684146e8cecf2a925a3b2281a218c99678a04171.tar.gz
Check for expired passwords before allowing access to the system.
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 8776124..832f175 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ftpd.c,v 1.10 1995/05/30 05:45:58 rgrimes Exp $
+ * $Id: ftpd.c,v 1.11 1995/08/05 19:12:05 pst Exp $
*/
#ifndef lint
@@ -579,6 +579,7 @@ pass(passwd)
#endif
/* 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)) {
reply(530, "Login incorrect.");
if (logging)
OpenPOWER on IntegriCloud