Fix ordering, #139 thanks to Matthias.

This commit is contained in:
Roy Marples 2009-01-12 10:24:47 +00:00
parent f23822e082
commit a52472c3c3

View File

@ -681,7 +681,7 @@ int start_stop_daemon(int argc, char **argv)
if (p == NULL)
setenv("USER", pw->pw_name, 1);
if (home == NULL) {
setenv("HOME", home, 1);
setenv("HOME", pw->pw_dir, 1);
home = pw->pw_dir;
}
}