[Dovecot] xexec and dovecot 1.1

Stephan Bosch stephan at rename-it.nl
Sat Mar 22 12:52:48 EET 2008


DOH! Forgot to CC to the mailinglist:

subscriber at viliar.net.ru schreef:subscriber at viliar.net.ru schreef:
 > subscriber at viliar.net.ru schreef:
 > Thank you, Stephan, for your help. Patch applies without any problem and
 > compilation was successful. According maillog, Dovecot load it without
 > problems too:
 >
 > Mar 19 09:06:37 mx3 dovecot: IMAP(alx at skymail.alx.in): Module loaded:
 > /usr/lib/dovecot/imap/lib10_xexec_plugin.so
 > I have activate it in config as for dovecot 1.0. But "sub commands" does
 > not started:
 >
 > ...
 >
 > [pid  4093] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
 > Process 4093 detached
 > <... select resumed> )                  = 2 (in [8 10], left {2147482,
 > 996000})
 > --- SIGCHLD (Child exited) @ 0 (0) --
Found it, apparently dovecot-1.1 does not like a NULL parameter to the
array_get function anymore:

-        execvp(*(char **)array_idx(&command, 0), array_get(&command, 
NULL));
+        execvp(*(char **)array_idx(&command, 0), array_idx(&command, 0));

With this additional change, the attached full patch manages to update
the XEXEC plugin to dovecot-1.1. This was tested with the 'average'
example and that worked flawlessly.

Regards,

Stephan




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dovecot-xexec-1.1.v2.patch
Url: http://dovecot.org/pipermail/dovecot/attachments/20080322/f19a1fdc/attachment.pl 


More information about the dovecot mailing list