X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ff2b7b715934b346b6121a2a434db116d3203663..fe9ab00a6a507867c3ab42101c17630c1217c29f:/sbr/credentials.c diff --git a/sbr/credentials.c b/sbr/credentials.c index 55e7a6b2..21ffe6c9 100644 --- a/sbr/credentials.c +++ b/sbr/credentials.c @@ -6,6 +6,10 @@ */ #include "h/mh.h" +#include "concat.h" +#include "ruserpass.h" +#include "credentials.h" +#include "context_find.h" #include "error.h" #include "h/utils.h" #include "h/mts.h" @@ -71,7 +75,7 @@ nmh_get_credentials (const char *host, const char *user) creds->pass = NULL; if (cred_style == NULL || ! strcmp (cred_style, "legacy")) { - creds->user = user == NULL ? mh_xstrdup(getusername ()) : mh_xstrdup(user); + creds->user = user == NULL ? mh_xstrdup(getusername (1)) : mh_xstrdup(user); } else if (! strncasecmp (cred_style, "file:", 5) || ! strncasecmp (cred_style, "file-nopermcheck:", 17)) { /*