]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: If there's no home directory don't set HOME environment at all.
authorTimo Sirainen <tss@iki.fi>
Sat, 25 Oct 2008 12:41:33 +0000 (15:41 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 25 Oct 2008 12:41:33 +0000 (15:41 +0300)
--HG--
branch : HEAD

src/master/mail-process.c

index 102ad276a3c8d08065e8f6e43aa2ef6d53020bd7..9ad2069db0fa618637da04e33efe9959605a83b3 100644 (file)
@@ -849,7 +849,8 @@ create_mail_process(enum process_type process_type, struct settings *set,
        }
 
        env_put("LOGGED_IN=1");
-       env_put(t_strconcat("HOME=", home_dir, NULL));
+       if (*home_dir != '\0')
+               env_put(t_strconcat("HOME=", home_dir, NULL));
        env_put(t_strconcat("USER=", user, NULL));
 
        addr = net_ip2addr(&request->remote_ip);