26 Jul
2012
26 Jul
'12
2:26 p.m.
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