mpack: Invoke /run/wrappers/bin/sendmail via execvp
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.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
--- 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);
|
||||
Reference in New Issue
Block a user