summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--daemon/logind/logind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c
index 6f159fb5..d4148056 100644
--- a/daemon/logind/logind.c
+++ b/daemon/logind/logind.c
@@ -1397,6 +1397,11 @@ main(int argc, char *argv[])
{
fprintf(stderr, LOG_PREFIX "start daemonize\r\n");
daemonize(BBSHOME "/run/logind.pid", log_file);
+
+ // because many of the libraries used in this daemon (for example,
+ // passwd / logging / ...) all assume cwd=BBSHOME,
+ // let's workaround them.
+ // chdir(BBSHOME);
}
// Some event notification mechanisms don't work across forks (e.g. kqueue)