Bad time logging - rsync 3.1.1 as daemon on Mac OS 10.9

Dave Gradwell davegradwell at yahoo.co.uk
Mon Aug 18 12:31:24 MDT 2014


Hi,

I'm on Mac OS 10.9, using rsync 3.1.1.

When the rsync daemon logs, it fails to determine the correct time:
2014/08/18 18:47:24 [1002] connect from localhost (::1)
2014/08/18 17:47:24 [1003] rsync to dave/in-progress/data/ from dave at localhost (::1)

When I specify use chroot = false in the rsyncd.conf, it logs the time correctly:
2014/08/18 19:21:32 [1138] connect from localhost (::1)
2014/08/18 19:21:32 [1139] rsync to dave/in-progress/data/ from dave at localhost (::1)

I have identified this bit in log.c:
	/* This looks pointless, but it is needed in order for the
	 * C library on some systems to fetch the timezone info
	 * before the chroot. */
	timestring(time(NULL));

...but I'm unsure how to go about fixing this.
Can anyone offer any advice?

With thanks,

Dave.


More information about the rsync mailing list