On Wed, May 03, 2006 at 11:58:07AM +1000, Anthony Sadler wrote: > Notice /etc/localtime not being able to open?
That happens because you're using "use chroot = yes". When rsync is running inside a chroot jail, it cannot access files that exist outside the rsync module's path. Rsync attempts to handle the timezone situation by using localtime() prior to the chroot call, but on some systems this is not enough to keep the library code really happy. I've checked in a change that makes rsync also call strftime() prior to the chroot (for those systems that are configured to use strftime()). ..wayne..
--- log.c 25 Apr 2006 23:51:15 -0000 1.146 +++ log.c 3 May 2006 06:06:19 -0000 @@ -154,17 +154,14 @@ static void logfile_open(void) void log_init(void) { - time_t t; - if (log_initialised) return; log_initialised = 1; /* this looks pointless, but it is needed in order for the * C library on some systems to fetch the timezone info * before the chroot */ - t = time(NULL); - localtime(&t); + timestring(time(NULL)); /* optionally use a log file instead of syslog */ logfname = lp_log_file();
-- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html