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:
@@ -34,6 +34,9 @@ RUN apt-get install -y -q sudo
|
|||||||
RUN mkdir -p test/t-02-exim/.exim4 \
|
RUN mkdir -p test/t-02-exim/.exim4 \
|
||||||
&& ln -s /usr/sbin/exim4 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.
|
# Install binaries for the (optional) DKIM integration test.
|
||||||
RUN go get github.com/driusan/dkim/... \
|
RUN go get github.com/driusan/dkim/... \
|
||||||
&& go install github.com/driusan/dkim/cmd/dkimsign \
|
&& go install github.com/driusan/dkim/cmd/dkimsign \
|
||||||
|
|||||||
Reference in New Issue
Block a user