Module Name:    src
Committed By:   christos
Date:           Wed Mar 26 00:05:56 UTC 2025

Modified Files:
        src/libexec/ftpd: ftpd.c

Log Message:
PR/59213: jlduran: Allow the nfail counter to be reset once a valid login occurs


To generate a diff of this commit:
cvs rdiff -u -r1.208 -r1.209 src/libexec/ftpd/ftpd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/ftpd/ftpd.c
diff -u src/libexec/ftpd/ftpd.c:1.208 src/libexec/ftpd/ftpd.c:1.209
--- src/libexec/ftpd/ftpd.c:1.208	Sat Sep 30 14:06:24 2023
+++ src/libexec/ftpd/ftpd.c	Tue Mar 25 20:05:56 2025
@@ -1,4 +1,4 @@
-/*	$NetBSD: ftpd.c,v 1.208 2023/09/30 18:06:24 shm Exp $	*/
+/*	$NetBSD: ftpd.c,v 1.209 2025/03/26 00:05:56 christos Exp $	*/
 
 /*
  * Copyright (c) 1997-2023 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@ __COPYRIGHT("@(#) Copyright (c) 1985, 19
 #if 0
 static char sccsid[] = "@(#)ftpd.c	8.5 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: ftpd.c,v 1.208 2023/09/30 18:06:24 shm Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.209 2025/03/26 00:05:56 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -1432,7 +1432,8 @@ do_pass(int pass_checked, int pass_rval,
 				exit(0);
 			}
 			return;
-		}
+		} else
+			pfilter_notify(0, "success");
 	}
 
 			/* password ok; check if anything else prevents login */

Reply via email to