make mutt_body_free a bit more mad-friendly
[apps/madmutt.git] / filter.c
index 952618f..ef052b5 100644 (file)
--- a/filter.c
+++ b/filter.c
 # include "config.h"
 #endif
 
-#include "mutt.h"
-
 #include <unistd.h>
 #include <stdlib.h>
 #include <sys/wait.h>
 
+#include <lib-sys/mutt_signal.h>
+
+#include "mutt.h"
+
 /* Invokes a commmand on a pipe and optionally connects its stdin and stdout
  * to the specified handles.
  */
@@ -93,7 +95,7 @@ mutt_create_filter_fd (const char *cmd, FILE ** in, FILE ** out, FILE ** err,
       close (fderr);
     }
 
-    execl (EXECSHELL, "sh", "-c", cmd, NULL);
+    execl ("/bin/sh", "sh", "-c", cmd, NULL);
     _exit (127);
   }
   else if (thepid == -1) {