Florian Wagner
2012-Jul-26 11:26 UTC
[Dovecot] Empty argument in "executable = script ..." service
Hi, what is the point of adding an empty argument to the command called by the "executable = script ..." setting in a service? I guess that would be the call to array_append_space at line 57 in util/script.c. Background is that I'm trying to run bogofilter through the extprograms Pigeonhole plugin. So I've defined a service entry with a unix_listener and wondered why my test shell script works but bogofilter exits with a cryptic error. Turns out that this empty argument at the end trips up the bogofilter argument parsing code. If I manually call bogofilter with execv and add that empty argument I get the same cryptic error. Regards Florian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20120726/9394f6ee/attachment-0004.bin>
Timo Sirainen
2012-Jul-31 19:30 UTC
[Dovecot] Empty argument in "executable = script ..." service
On 26.7.2012, at 14.26, Florian Wagner wrote:> what is the point of adding an empty argument to the command called by > the "executable = script ..." setting in a service? I guess that would > be the call to array_append_space at line 57 in util/script.c.Fixed: http://hg.dovecot.org/dovecot-2.1/rev/1d9d799a2efc