commit | 3964a83d2f085536188c329ea1962863cf5171df | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Sep 18 14:37:39 2018 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Sep 18 14:37:39 2018 +0200 |
tree | e16f0fdc306a9305d3bf8982665bf7834add1a65 | |
parent | d5f877d1bba85322cccfa3e8af971d8d1f41c4c8 [diff] [blame] |
server session BUGFIX incorrect fopen mode Fixes #83
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c index 86f67e2..918435f 100644 --- a/src/session_server_ssh.c +++ b/src/session_server_ssh.c
@@ -53,7 +53,7 @@ return NULL; } - file = fdopen(fd, "r"); + file = fdopen(fd, "w"); if (!file) { close(fd); return NULL;