From e59540139a398dc70fde6aec487b19c5085105af Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 20 Aug 2019 13:22:15 +0200 Subject: cleanup: remove DOT_CHAR completely Follow-up to f9c7ba9096ec The use of DOT_CHAR for ".ssh" was probably a mistake and is removed now. Pointed-out-by: Gisle Vanem Bug: https://github.com/curl/curl/pull/4230#issuecomment-522960638 Closes #4247 --- src/tool_operate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tool_operate.c') diff --git a/src/tool_operate.c b/src/tool_operate.c index c9189bdee..87d3ab89c 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1487,7 +1487,7 @@ static CURLcode create_transfers(struct GlobalConfig *global, result = CURLE_OUT_OF_MEMORY; home = homedir(); if(home) { - file = aprintf("%s/%sssh/known_hosts", home, DOT_CHAR); + file = aprintf("%s/.ssh/known_hosts", home); if(file) { /* new in curl 7.19.6 */ result = res_setopt_str(curl, CURLOPT_SSH_KNOWNHOSTS, file); -- cgit v1.2.3