From a52472c3c3dda0a24a5eed66eb9c3974c09f7192 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 12 Jan 2009 10:24:47 +0000 Subject: Fix ordering, #139 thanks to Matthias. --- src/rc/start-stop-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } } -- cgit v1.2.3