Commit b80d82a5 authored by Cédric de Saint Martin's avatar Cédric de Saint Martin Committed by Marco Mariani

Fix noroot patch for postfix.

parent 26f37b29
...@@ -12,7 +12,7 @@ recipe = hexagonit.recipe.download ...@@ -12,7 +12,7 @@ recipe = hexagonit.recipe.download
url =${:_profile_base_location_}/${:filename} url =${:_profile_base_location_}/${:filename}
filename = ${:_buildout_section_name_} filename = ${:_buildout_section_name_}
download-only = true download-only = true
md5sum = b27031282a7c1cfc2c43a721c2b8802f md5sum = a476856bb1a4ee2ab03963acac03cd1d
[skip-libdb-check.patch] [skip-libdb-check.patch]
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
......
...@@ -15,3 +15,24 @@ ...@@ -15,3 +15,24 @@
errno = saved_errno; errno = saved_errno;
-} -}
+*/} +*/}
--- a/src/postfix/postfix.c
+++ b/src/postfix/postfix.c
@@ -448,12 +448,12 @@ int main(int argc, char **argv)
* privileges for selected operations. That's right - it takes privileges
* to toss privileges.
*/
- if (getuid() != 0) {
+ /*if (getuid() != 0) {
msg_error("to submit mail, use the Postfix sendmail command");
msg_fatal("the postfix command is reserved for the superuser");
}
if (unsafe() != 0)
- msg_fatal("the postfix command must not run as a set-uid process");
+ msg_fatal("the postfix command must not run as a set-uid process");*/
/*
* Parse switches.
--
1.7.11.3
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment