Commit 96a185d6 96a185d6b067daf47b3463da809d93ce35a1f04c by Sergey Poznyakoff

(imap4d_login): Removed FIXME note: the user need not have a homedir at all.

1 parent 5b6143ea
......@@ -147,9 +147,8 @@ imap4d_login (struct imap4d_command *command, char *arg)
setuid (pw->pw_uid);
homedir = mu_normalize_path (strdup (pw->pw_dir), "/");
/* FIXME: Check for errors. */
chdir (homedir);
namespace_init(pw->pw_dir);
namespace_init (pw->pw_dir);
syslog (LOG_INFO, "User '%s' logged in", username);
return util_finish (command, RESP_OK, "Completed");
}
......