On Sat, 2010-07-24 at 11:15 +0200, Jan Vítek wrote: > # dsync -D -v -u 'i...@example.org' -o 'mail_privileged_group=mail' -o > 'mail_location=mbox:/email/i...@example.org/mail:INBOX=/var/mail/i...@example.org' > > mirror 'maildir:~/Maildir' > dsync(i...@example.org): Info: Sport: only in source > dsync(i...@example.org): Info: INBOX: only in source > dsync(i...@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(i...@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.