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

Reply via email to