commit | 6e1bb5123b87a80aeb0bcfeedb8a99c9e0f32939 | [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:38:44 2018 +0200 |
tree | 045c3376a06ad3ece76040cb122e04b64a497784 | |
parent | 54ba1c7a1dbd85f3e700c1629ced8e4b52bac4ec [diff] |
server session BUGFIX incorrect fopen mode Fixes #83
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c index ff14ae7..ea9bab9 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;