Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 1997 21:08:23 -0800 (PST)
From:      Sean Eric Fagan <sef@kithrup.com>
To:        current@freebsd.org
Subject:   Anyone object to this login.c patch?
Message-ID:  <199711120508.VAA01909@kithrup.com>

next in thread | raw e-mail | index | archive | help
I need logging for failed logins, and I was unable to figure out how to get
it without this change.  It will log failures more often than the other
would (well, I was able to get *any*, when I wasn't before).

Index: login.c
===================================================================
RCS file: /usr/cvs/src/usr.bin/login/login.c,v
retrieving revision 1.30
diff -u -r1.30 login.c
--- login.c	1997/10/19 09:34:06	1.30
+++ login.c	1997/11/12 05:05:54
@@ -502,6 +502,7 @@
 
 		(void)printf("Login incorrect\n");
 		failures++;
+		badlogin(username);
 
 		/*
 		 * we allow up to 'retry' (10) tries,
@@ -509,7 +510,6 @@
 		 */
 		if (++cnt > backoff) {
 			if (cnt >= retries) {
-				badlogin(username);
 				sleepexit(1);
 			}
 			sleep((u_int)((cnt - 3) * 5));



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