Commit 9d20dffb authored by Marco Mariani's avatar Marco Mariani

postfix patch: skip call to initgroups()

parent 5ef6959f
......@@ -21,6 +21,7 @@ POSTFIX_TGZ_TARGET := \
BDB_PATCH := patch -g0 -p1 < ../patches/postfix-zimbra-bdb.patch;
NOROOT_PATCH := patch -g0 -p1 < ../patches/noroot.patch;
SESSION_PATCH := patch -g0 -p1 < ../patches/session.patch;
INITGROUPS_PATCH := patch -g0 -p1 < ../patches/initgroups.patch;
PCRE_DEF := -DHAS_PCRE
PCRE_INCLUDE := -I$(PCRE_PREFIX)/include
......@@ -52,6 +53,7 @@ build:
$(BDB_PATCH) \
$(NOROOT_PATCH) \
$(SESSION_PATCH) \
$(INITGROUPS_PATCH) \
$(PATCH) \
patch -g0 -p1 < ../patches/postfix-main-cf-zimbra.patch; \
$(MAKE) $(MAKEARGS) makefiles \
......
--- a/src/util/chroot_uid.c
+++ b/src/util/chroot_uid.c
@@ -57,8 +57,8 @@ void chroot_uid(const char *root_dir, const char *user_name)
gid = pwd->pw_gid;
if (setgid(gid) < 0)
msg_fatal("setgid(%ld): %m", (long) gid);
- if (initgroups(user_name, gid) < 0)
- msg_fatal("initgroups: %m");
+ /*if (initgroups(user_name, gid) < 0)
+ msg_fatal("initgroups: %m");*/
}
/*
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