]> diplodocus.org Git - nmh/blobdiff - sbr/credentials.c
- Fixed bcc to work with sendmail/pipe [Bug 55700].
[nmh] / sbr / credentials.c
index bf2ab6035c7b0f4c6a0bf6ecbaa7e599986e5e4f..21ffe6c94a0e1ba241b75a3d4898b01363adac0c 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "concat.h"
+#include "ruserpass.h"
 #include "credentials.h"
 #include "context_find.h"
 #include "error.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->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)) {
         /*
     } else if (! strncasecmp (cred_style, "file:", 5) ||
               ! strncasecmp (cred_style, "file-nopermcheck:", 17)) {
         /*