]> diplodocus.org Git - nmh/blobdiff - mts/smtp/smtp.c
Add a new base64 CTE test.
[nmh] / mts / smtp / smtp.c
index 98c20d83c4faf85328b774038265406646b41894..984f50d3f1ccd0d72b87dfd1600a2cebf6880c0d 100644 (file)
@@ -481,8 +481,6 @@ sendmail_init (char *client, char *server, int watch, int verbose,
                vec[vecp++] = "-ov";
            vec[vecp++] = NULL;
 
-           setgid (getegid ());
-           setuid (geteuid ());
            execvp (sendmail, vec);
            fprintf (stderr, "unable to exec ");
            perror (sendmail);
@@ -854,7 +852,7 @@ sm_auth_sasl(char *user, int saslssf, char *mechlist, char *inhost)
        strncpy(host, inhost, sizeof(host) - 1);
     }
 
-    nmh_get_credentials (host, user, 1, &creds);
+    nmh_get_credentials (host, user, 0, &creds);
 
     /* It's OK to copy the creds pointers here.  The callbacks that
        use them will only be called before this function returns. */