trivial grammatical patch

Matthew Clarke Matthew_Clarke at mindlink.bc.ca
Sun Oct 7 13:12:17 EST 2001


Hi.

Debug message "No RSA1 key file blah" misled me for a few seconds earlier
today.  The message is meaning to say "key file blah is not an RSA1 key
file", whereas I interpreted it to mean "key file blah does not exist".

Trivial patch against 2.9.9p2's authfile.c:

--- authfile.c.orig	Sat Oct  6 19:52:16 2001
+++ authfile.c	Sat Oct  6 19:53:11 2001
@@ -250,7 +250,7 @@
 
 	/* Check that it is at least big enough to contain the ID string. */
 	if (len < sizeof(authfile_id_string)) {
-		debug3("No RSA1 key file %.200s.", filename);
+		debug3("Not RSA1 key file %.200s.", filename);
 		buffer_free(&buffer);
 		return NULL;
 	}
@@ -260,7 +260,7 @@
 	 */
 	for (i = 0; i < sizeof(authfile_id_string); i++)
 		if (buffer_get_char(&buffer) != authfile_id_string[i]) {
-			debug3("No RSA1 key file %.200s.", filename);
+			debug3("Not RSA1 key file %.200s.", filename);
 			buffer_free(&buffer);
 			return NULL;
 		}
@@ -336,7 +336,7 @@
 
 	/* Check that it is at least big enough to contain the ID string. */
 	if (len < sizeof(authfile_id_string)) {
-		debug3("No RSA1 key file %.200s.", filename);
+		debug3("Not RSA1 key file %.200s.", filename);
 		buffer_free(&buffer);
 		close(fd);
 		return NULL;
@@ -347,7 +347,7 @@
 	 */
 	for (i = 0; i < sizeof(authfile_id_string); i++)
 		if (buffer_get_char(&buffer) != authfile_id_string[i]) {
-			debug3("No RSA1 key file %.200s.", filename);
+			debug3("Not RSA1 key file %.200s.", filename);
 			buffer_free(&buffer);
 			close(fd);
 			return NULL;

-- 
"With your own code to haunt you, who needs users?"
				-- Maarten Wiltink



More information about the openssh-unix-dev mailing list