]> diplodocus.org Git - nmh/blobdiff - sbr/credentials.c
- Fixed bcc to work with sendmail/pipe [Bug 55700].
[nmh] / sbr / credentials.c
index 55e7a6b2f1bdb2dcaebff6cc7de3645e80a0cbe2..21ffe6c94a0e1ba241b75a3d4898b01363adac0c 100644 (file)
@@ -6,6 +6,10 @@
  */
 
 #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 "h/utils.h"
 #include "h/mts.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->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)) {
         /*