1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

test: Adjust docker test to msmtp being a setgid binary

The golang image has been updated to use Debian buster. In that version,
msmtp is now setgid, which means glibc sanitizes the environment before
forking and $HOSTALIASES will be ignored, which breaks the tests.

This patch works around the problem by removing the setgid bit from
msmtp.
This commit is contained in:
Alberto Bertogli
2019-08-04 03:31:22 +01:00
parent e8ccff749e
commit 5102007687

View File

@@ -34,6 +34,9 @@ RUN apt-get install -y -q sudo
RUN mkdir -p test/t-02-exim/.exim4 \
&& ln -s /usr/sbin/exim4 test/t-02-exim/.exim4
# Prepare msmtp: remove setuid, otherwise HOSTALIASES doesn't work.
RUN chmod g-s /usr/bin/msmtp
# Install binaries for the (optional) DKIM integration test.
RUN go get github.com/driusan/dkim/... \
&& go install github.com/driusan/dkim/cmd/dkimsign \