From 6d90308a39dd5ca699cb9db6d73f687b7639a340 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 6 Oct 2022 09:16:42 +0200 Subject: [PATCH] netrc: compare user name case sensitively User name comparisions in netrc need to match the case. Closes #9657 --- lib/netrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netrc.c b/lib/netrc.c index 3232274dd7..e183b6271d 100644 --- a/lib/netrc.c +++ b/lib/netrc.c @@ -198,7 +198,7 @@ static int parsenetrc(const char *host, /* we are now parsing sub-keywords concerning "our" host */ if(state_login) { if(specific_login) { - state_our_login = strcasecompare(login, tok); + state_our_login = !strcmp(login, tok); } else if(!login || strcmp(login, tok)) { if(login_alloc) { -- 2.47.3