12 lines
382 B
Diff
12 lines
382 B
Diff
|
diff --git a/session.c b/session.c
|
||
|
--- a/session.c
|
||
|
+++ b/session.c
|
||
|
@@ -1859,6 +1859,7 @@ do_child(Session *s, const char *command)
|
||
|
|
||
|
if (s->is_subsystem == SUBSYSTEM_INT_SFTP_ERROR) {
|
||
|
printf("This service allows sftp connections only.\n");
|
||
|
+ logit("The session allows sftp connections only");
|
||
|
fflush(NULL);
|
||
|
exit(1);
|
||
|
} else if (s->is_subsystem == SUBSYSTEM_INT_SFTP) {
|