Fix ordering, #139 thanks to Matthias.
This commit is contained in:
parent
f23822e082
commit
a52472c3c3
@ -681,7 +681,7 @@ int start_stop_daemon(int argc, char **argv)
|
|||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
setenv("USER", pw->pw_name, 1);
|
setenv("USER", pw->pw_name, 1);
|
||||||
if (home == NULL) {
|
if (home == NULL) {
|
||||||
setenv("HOME", home, 1);
|
setenv("HOME", pw->pw_dir, 1);
|
||||||
home = pw->pw_dir;
|
home = pw->pw_dir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user