summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rc/start-stop-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
index b10ff01..eb7490b 100644
--- a/src/rc/start-stop-daemon.c
+++ b/src/rc/start-stop-daemon.c
@@ -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;
}
}