kentpeacock / rpms / openssh

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