On Sat, 2010-07-24 at 11:15 +0200, Jan VĂtek wrote:
# dsync -D -v -u 'info@example.org' -o 'mail_privileged_group=mail' -o 'mail_location=mbox:/email/info@example.org/mail:INBOX=/var/mail/info@example.org' mirror 'maildir:~/Maildir' dsync(info@example.org): Info: Sport: only in source dsync(info@example.org): Info: INBOX: only in source dsync(info@example.org): Error: open(.) failed: Permission denied
The problem was mail_privileged_group. It wanted to chdir() and then fchdir() back to original directory. I fixed this by making dsync -u always chdir() to user's home directory first (it should have been doing that anyway).
dsync(info@example.org): Panic: file mbox-sync-rewrite.c: line 247 (mbox_sync_try_rewrite): assertion failed: (sync_ctx->mbox->mbox_lock_type == F_WRLCK)
Fixed also this crash.