Commit 521dc384 521dc38470ae8dbb0a9fadf2169a56e532c93def by Sergey Poznyakoff

Use mu_getpwnam instead of system getpwnam.

1 parent 51a78b3d
......@@ -138,13 +138,8 @@ imap4d_login (struct imap4d_command *command, char *arg)
else if (util_getword (NULL, &sp))
return util_finish (command, RESP_NO, "Too many args");
pw = getpwnam (username);
pw = mu_getpwnam (username);
if (pw == NULL)
#ifdef HAVE_MYSQL
pw = getMpwnam (username);
if (pw == NULL)
#endif /* HAVE_MYSQL */
#ifdef USE_VIRTUAL_DOMAINS
pw = imap4d_virtual (username);
......
......@@ -20,7 +20,7 @@
static int is_virtual = 0;
#ifdef HAVE_MYSQL
#include "../MySql/MySql.h"
# include "../MySql/MySql.h"
#endif
#ifdef USE_VIRTUAL_DOMAINS
......@@ -172,11 +172,7 @@ pop3d_user (const char *arg)
}
#endif
pw = getpwnam (arg);
#ifdef HAVE_MYSQL
if (pw == NULL)
pw = getMpwnam (arg);
#endif /* HAVE_MYSQL */
pw = mu_getpwnam (arg);
#ifdef USE_VIRTUAL_DOMAINS
if (pw == NULL)
......