From d26c6c002866376b73c3c8ffd4969203b5c1420c Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Thu, 28 Dec 2017 20:01:11 +0100 Subject: [PATCH] * src/netrc.c: Search for the correct netrc file on Windows --- src/netrc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/netrc.c b/src/netrc.c index 6375b66d..8b84ea26 100644 --- a/src/netrc.c +++ b/src/netrc.c @@ -42,7 +42,11 @@ as that of the covered work. */ #include "netrc.h" #include "init.h" -#define NETRC_FILE_NAME ".netrc" +#ifdef WINDOWS +# define NETRC_FILE_NAME "_netrc" +#else +# define NETRC_FILE_NAME ".netrc" +#endif static acc_t *netrc_list;