kentpeacock / rpms / openssh

Forked from rpms/openssh 2 years ago
Clone
b58e57
diff --git a/session.c b/session.c
b58e57
index 626a642..b186ca1 100644
b58e57
--- a/session.c
b58e57
+++ b/session.c
b58e57
@@ -1859,6 +1859,7 @@ do_child(Session *s, const char *command)
b58e57
 
b58e57
 	if (s->is_subsystem == SUBSYSTEM_INT_SFTP_ERROR) {
b58e57
 		printf("This service allows sftp connections only.\n");
b58e57
+		logit("The session allows sftp connections only");
b58e57
 		fflush(NULL);
b58e57
 		exit(1);
b58e57
 	} else if (s->is_subsystem == SUBSYSTEM_INT_SFTP) {