On Mon, Jan 25, 1999 at 03:37:21PM -0600, Bruce Guenter wrote:
> Appended is a patch to qmail-1.03 that causes any program that would run
> qmail-queue to look for an environment variable QMAILQUEUE.  If it is
> present, it is used in place of the string "bin/qmail-queue" when
> running qmail-queue.

I've been contemplating rewriting the patch to do an exec of
{ "/bin/sh", "-c", $QMAILQUEUE } instead of exec'ing $QMAILQUEUE as-is.
This would allow for putting the contents of the script named by
$QMAILQUEUE (which is frequently a one-line shell script anyways) into
the variable itself.  Are there any downsides to this approach other
than the obvious overhead of adding /bin/sh to the execution path?  Is
this overhead significant enough to make such a modification a bad idea?
-- 
Bruce Guenter <[EMAIL PROTECTED]> http://em.ca/~bruceg/ http://untroubled.org/
OpenPGP key: 699980E8 / D0B7 C8DD 365D A395 29DA  2E2A E96F B2DC 6999 80E8

PGP signature

Reply via email to