X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/bfff2c60b2c860c2bc466bdab94daf770d86aec5..4d5d51e903a42c23800540930244448c4aacae16:/sbr/credentials.c diff --git a/sbr/credentials.c b/sbr/credentials.c index 8d2ed617..21ffe6c9 100644 --- a/sbr/credentials.c +++ b/sbr/credentials.c @@ -5,10 +5,14 @@ * complete copyright information. */ -#include +#include "h/mh.h" +#include "concat.h" +#include "ruserpass.h" +#include "credentials.h" +#include "context_find.h" #include "error.h" -#include -#include +#include "h/utils.h" +#include "h/mts.h" #include "m_maildir.h" struct nmh_creds { @@ -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)) { /*