---
sent.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sent.c b/sent.c
index fc5e389..99361e8 100644
--- a/sent.c
+++ b/sent.c
_AT_@ -152,8 +152,8 @@ filter(int fd, const char *cmd)
dup2(fds[1], 1);
close(fds[0]);
close(fds[1]);
- execlp(cmd, cmd, (char *)0);
- eprintf("execlp %s:", cmd);
+ execlp("sh", "sh", "-c", cmd, (char *)0);
+ eprintf("execlp sh -c '%s':", cmd);
}
close(fds[1]);
return fds[0];
--
2.4.10
Received on Thu Dec 10 2015 - 05:56:07 CET
This archive was generated by hypermail 2.3.0 : Thu Dec 10 2015 - 06:00:14 CET