Commit 5a3b38eb 5a3b38ebc56f381af4252193adddabe0ad651d52 by Sergey Poznyakoff

use mu_getpwnam. Removed inclusion of MySql.h.

1 parent 01ed4b9b
......@@ -30,10 +30,6 @@
# include <paths.h>
#endif
#ifdef HAVE_MYSQL
#include "../MySql/MySql.h"
#endif
#include <mailutils/mailbox.h>
#include <mailutils/error.h>
......@@ -82,13 +78,7 @@ get_homedir (const char *user)
struct passwd *pw = NULL;
if (user)
{
pw = getpwnam (user);
#ifdef HAVE_MYSQL
if (!pw)
pw = getMpwnam(user);
#endif /* HAVE_MYSQL */
pw = mu_getpwnam (user);
if (pw)
homedir = pw->pw_dir;
}
......