1
0
Fork 0
apache2/debian/tests/duplicate-module-load
Daniel Baumann f56986e2d9
Adding debian version 2.4.63-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 11:01:27 +02:00

26 lines
656 B
Bash

#!/bin/sh
set -exu
# Check to make sure that module loads haven't been duplicated.
# Since this is potential minefield that could cause chaos, and a fix is
# currently in the Ubuntu delta, check specifically for it.
# Why is this so bad? See:
# https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939
# https://issues.apache.org/bugzilla/show_bug.cgi?id=55787
cd $AUTOPKGTEST_TMP
apache2ctl -l -M > unsorted
sort unsorted > sorted
if ! grep core.c sorted ; then
echo "core.c not found in apach2ctl output. apache2ctl broken?"
exit 1
fi
uniq < sorted > dedup
if ! diff -u sorted dedup ; then
echo Duplicate module loads found
exit 1
fi