aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-12 10:24:47 +0000
committerRoy Marples <roy@marples.name>2009-01-12 10:24:47 +0000
commita52472c3c3dda0a24a5eed66eb9c3974c09f7192 (patch)
treedb3ef900afe1517c6418f0eb3e94b40c595803e9
parentf23822e082c730837ead287dd2450117d926cbe1 (diff)
Fix ordering, #139 thanks to Matthias.
-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 b10ff01e..eb7490be 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;
}
}