vishalmishra434 / rpms / openssh

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