X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/db8011d59fd72ef03d9866a345f4a017f2cb11e0..fe9ab00a6a507867c3ab42101c17630c1217c29f:/sbr/credentials.c diff --git a/sbr/credentials.c b/sbr/credentials.c index bf2ab603..21ffe6c9 100644 --- a/sbr/credentials.c +++ b/sbr/credentials.c @@ -6,6 +6,8 @@ */ #include "h/mh.h" +#include "concat.h" +#include "ruserpass.h" #include "credentials.h" #include "context_find.h" #include "error.h" @@ -73,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)) { /*