[Dovecot] wrong permission

Timo Sirainen tss at iki.fi
Thu Jul 31 19:46:21 EEST 2008


On Jul 31, 2008, at 7:31 PM, Cor Bosman wrote:

>>> userimap1# cd /var/spool/mail/dovecot-control/r/ro/rossXXX/
>>> INBOX/.Sport.NKR
>>> userimap1# ls -al
>>> total 8
>>> drw-------   2 rossXXX  user  4096 Jul  2 18:35 .
>>> drwx------  33 rossXXX  user  4096 Jul 31 07:39 ..
>>
>> That's beginning to sound like Dovecot isn't even creating these
>> directories. But what else could be?..
>
> Nothing really. We dont even use deliver. Only thing that knows about
> those control dirs is dovecot.

All mkdir()s in imap process go through mkdir_parents(), so see if  
this gives you assert-crashes:

diff -r 6fec5522a3b0 src/lib/mkdir-parents.c
--- a/src/lib/mkdir-parents.c   Thu Jul 10 22:38:31 2008 +0530
+++ b/src/lib/mkdir-parents.c   Thu Jul 31 19:45:22 2008 +0300
@@ -9,6 +9,8 @@ int mkdir_parents(const char *path, mode
  {
         const char *p;
         int ret;
+
+       i_assert((mode & 0100) != 0);

         /* EISDIR check is for BSD/OS which returns it if path  
contains '/'
            at the end and it exists.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080731/8510589f/attachment.bin 


More information about the dovecot mailing list