* src/netrc.c: Search for the correct netrc file on Windows

This commit is contained in:
Darshit Shah 2017-12-28 20:01:11 +01:00
parent 047746eb76
commit d26c6c0028

View File

@ -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;