Disable setgid of inc (SETGID_MAIL=1) when running distcheck.
authorDavid Levine <levinedl@acm.org>
Sat, 28 Apr 2012 12:55:16 +0000 (07:55 -0500)
committerDavid Levine <levinedl@acm.org>
Sat, 28 Apr 2012 12:55:40 +0000 (07:55 -0500)
(cherry picked from commit 9ba93ac9c535b678bb602094997a797ba8b33666)

Makefile.am
configure.ac

index e68973d..7326a5b 100644 (file)
@@ -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"
index 26b2606..5e9cae2 100644 (file)
@@ -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