From 9ba93ac9c535b678bb602094997a797ba8b33666 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 28 Apr 2012 07:55:16 -0500 Subject: [PATCH] Disable setgid of inc (SETGID_MAIL=1) when running distcheck. --- Makefile.am | 1 + configure.ac | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Makefile.am b/Makefile.am index e68973d..7326a5b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -73,6 +73,7 @@ TESTS = test/bad-input/test-header \ check_SCRIPTS = test/common.sh check_PROGRAMS = test/getfullname test/getfqdn test/fakesmtp +DISTCHECK_CONFIGURE_FLAGS = DISABLE_SETGID_MAIL=1 ## ## Stuff that should be cleaned via "make clean" diff --git a/configure.ac b/configure.ac index 26b2606..5e9cae2 100644 --- a/configure.ac +++ b/configure.ac @@ -362,6 +362,12 @@ if test "$ac_cv_lib_lockfile_lockfile_create" != "no" ; then fi fi +dnl Provide a way for distcheck to disable setgid_mail via +dnl DISTCHECK_CONFIGURE_FLAGS. +if test x"$DISABLE_SETGID_MAIL" != x; then + nmh_cv_dotlockfile_setgid=yes +fi + dnl If mailspool is not world-writable and dotlockfile is not setgid, dnl we need to #define MAILGROUP to 1 and make inc setgid. if test x"$LOCKTYPE" = x"dot" -a x"$nmh_cv_mailspool_world_writable" = x"no" -a x"$nmh_cv_dotlockfile_setgid" != x"yes" ; then -- 1.7.10.4