summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2019-12-19 18:54:15 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-23 14:45:24 +0100
commit3a6751f3d2318abb63975439104543ee6f3131ad (patch)
treecc1ed2dd8ce2950d58f3698a2bdd6f5d86124f3f
parentdd6498066234ca51e7048473eeec0bfb28053be9 (diff)
downloadlibssh-3a6751f3d2318abb63975439104543ee6f3131ad.tar.gz
libssh-3a6751f3d2318abb63975439104543ee6f3131ad.tar.xz
libssh-3a6751f3d2318abb63975439104543ee6f3131ad.zip
socket: Fix the error message
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index e040c870..2fef8e7e 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -873,7 +873,7 @@ ssh_execute_command(const char *command, socket_t in, socket_t out)
/* Prepare /dev/null socket for the stderr redirection */
int devnull = open("/dev/null", O_WRONLY);
if (devnull == -1) {
- SSH_LOG(SSH_LOG_WARNING, "Failed to open stderr");
+ SSH_LOG(SSH_LOG_WARNING, "Failed to open /dev/null");
exit(1);
}