mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 16:15:30 +00:00
6d97096d8b
Calling /run/current-sw/bin/sendmail fails under postfix because setgid bits are not set. Switching the hardcoded path to an invocation via execvp should cover both cases, when the sendmail binary is setgid-wrapped and when it is not.
13 lines
380 B
Diff
13 lines
380 B
Diff
--- mpack-1.6/unixpk.c 2003-07-21 22:50:41.000000000 +0200
|
|
+++ mpack-1.6/unixpk.c 2018-09-16 12:57:14.104026964 +0200
|
|
@@ -254,8 +254,9 @@
|
|
#ifdef SCO
|
|
execv("/usr/lib/mail/execmail", addr+start);
|
|
#else
|
|
+ execvp("sendmail", addr+start);
|
|
execv("/usr/lib/sendmail", addr+start);
|
|
execv("/usr/sbin/sendmail", addr+start);
|
|
#endif
|
|
perror("execv");
|
|
_exit(1);
|