From 7ae8d049551427f29e792a8920755426d262fe92 Mon Sep 17 00:00:00 2001 From: jsbid1 Date: Mon, 8 Feb 2010 16:09:45 +0000 Subject: [PATCH] Fix #86, patch from jsbid1 gmail.com --- CHANGELOG | 1 + src/iodined.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 404774f..271e2ad 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -29,6 +29,7 @@ CHANGES: Patch by Anne Bezemer, merge help by logix. - Merged low-latency patch from Anne Bezemer, fixes #76. - Resolve client nameserver argument if given as hostname, fixes #82. + - Open log before chroot, fixes #86: logging on FreeBSD. 2009-06-01: 0.5.2 "WifiFree" - Fixed client segfault on OS X, #57 diff --git a/src/iodined.c b/src/iodined.c index 938975e..a3e599b 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -2446,6 +2446,11 @@ main(int argc, char **argv) if (pidfile != NULL) do_pidfile(pidfile); +#ifdef FREEBSD + tzsetwall(); +#endif + openlog( __progname, LOG_NDELAY, LOG_DAEMON ); + if (newroot != NULL) do_chroot(newroot);