[Dovecot] imap dump-capability fails Dovecot 1.1.6

Timo Sirainen tss at iki.fi
Fri Oct 31 18:36:53 EET 2008


On Fri, 2008-10-31 at 17:32 +0100, Bernhard Herzog wrote:
> On 31.10.2008, Timo Sirainen wrote:
> > On Fri, 2008-10-31 at 08:32 +0100, Thorsten Vollmer wrote:
> [...]
> > > Adding a fake home directory to args in
> > > master-settings.c:get_imap_capability solved the problem for me, but
> > > there may be a more correct fix.
> >
> > Yes, that's the correct fix:
> > http://hg.dovecot.org/dovecot-1.1/rev/2fbd36039526
> 
> With the corresponding fix in dovecot-1.2 dovecot doesn't start anymore for 
> me:
> 
> setgid(65534) failed with euid=1001, gid=1001, egid=1001: Operation not 
> permitted
> Error: imap dump-capability process returned 89
> 
> It turns out that rev 2fbd36039526 changed the indices in the args array that 
> some other code get_imap_capability relied on so that the uid and gid are not 
> overwritten properly when dovecot is not started as root.  See this patch:

Oh. Right. It didn't give that error with me, so I assumed it worked.
Well, I fixed it just by moving home to last:
http://hg.dovecot.org/dovecot-1.1/rev/cbde69815b8a

> The Patch is not an attachment this time to avoid mailman breaking the openpgp 
> signature.

Hmm. It does that?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081031/8d9945f9/attachment.bin 


More information about the dovecot mailing list