X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/09792322d9224b0407783a19c2dd57fd1a8bbd52..700d22f3fc0cc559170e8085a1b799b61dceb738:/src/src/transports/pipe.c diff --git a/src/src/transports/pipe.c b/src/src/transports/pipe.c index 39a9d8b47..54989410a 100644 --- a/src/src/transports/pipe.c +++ b/src/src/transports/pipe.c @@ -572,17 +572,20 @@ options. */ if (testflag(addr, af_pfr) && addr->local_part[0] == '|') { - if (ob->force_command) { - /* Enables expansion of $address_pipe into seperate arguments */ - setflag(addr,af_force_command); - cmd = ob->cmd; - expand_arguments = TRUE; - expand_fail = PANIC; - } else { - cmd = addr->local_part + 1; - while (isspace(*cmd)) cmd++; - expand_arguments = testflag(addr, af_expand_pipe); - expand_fail = FAIL; + if (ob->force_command) + { + /* Enables expansion of $address_pipe into seperate arguments */ + setflag(addr, af_force_command); + cmd = ob->cmd; + expand_arguments = TRUE; + expand_fail = PANIC; + } + else + { + cmd = addr->local_part + 1; + while (isspace(*cmd)) cmd++; + expand_arguments = testflag(addr, af_expand_pipe); + expand_fail = FAIL; } } else