summaryrefslogtreecommitdiff
path: root/src/mail-wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail-wrapper.c')
-rw-r--r--src/mail-wrapper.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mail-wrapper.c b/src/mail-wrapper.c
index 1c5390ee9..ce2853c3b 100644
--- a/src/mail-wrapper.c
+++ b/src/mail-wrapper.c
@@ -20,11 +20,13 @@
#include "common.h"
-/* TBD: Should make these arrays too?... */
-#define LEGAL_PARENT_UID MAIL_UID /* mail's UID */
-#define LEGAL_PARENT_GID MAIL_GID /* mail's GID */
+/* TBD: Should make this an array too?... */
+
+/* GID that your sendmail runs filter programs as. See you sendmail.cf
+ * documentation for details
+ */
+#define LEGAL_PARENT_GID MAIL_GID
-const int parentuid = LEGAL_PARENT_UID;
const int parentgid = LEGAL_PARENT_GID;
const char* logident = "Mailman mail-wrapper";
@@ -90,7 +92,7 @@ main(int argc, char** argv, char** env)
if (!check_command(argv[1]))
fatal(logident, "Illegal command: %s", argv[1]);
- check_caller(logident, parentuid, parentgid);
+ check_caller(logident, parentgid);
/* If we got here, everything must be OK */
status = setuid(geteuid());