kentpeacock / rpms / openssh

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