]> granicus.if.org Git - neomutt/commitdiff
Remove glibc-specific execvpe() call in sendlib.c. (see #3937)
authorKevin McCarthy <kevin@8t8.us>
Sun, 30 Apr 2017 22:56:15 +0000 (15:56 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sun, 30 Apr 2017 22:56:15 +0000 (15:56 -0700)
Changeset fa1192803257 converted all exec calls to use mutt_envlist().
Unfortunately, the call in sendlib.c, execvpe(), is a glibc extension.

Convert back to execvp() for now, to fix the build on MacOS.

sendlib.c

index ad28de0dabb59883e36dea82b29518e859b631a3..bd0770835551a4e83728e5a2be1e92a31f4cc9a4 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -2240,7 +2240,9 @@ send_msg (const char *path, char **args, const char *msg, char **tempfile)
          _exit (S_ERR);
       }
 
-      execvpe (path, args, mutt_envlist ());
+      /* execvpe is a glibc extension */
+      /* execvpe (path, args, mutt_envlist ()); */
+      execvp (path, args);
       _exit (S_ERR);
     }
     else if (pid == -1)