From 21476d6896a3dd548be863d257901c9ad2e04258 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Tue, 20 Aug 2024 13:44:13 +0200 Subject: [PATCH] Fix ./unrealircd hot-patch in case of zero byte patch file. Such a file is served if the UnrealIRCd version is unaffected. It printed "This UnrealIRCd version does not require that patch" but then instead of stopping it continued.. which wasn't all that bad before GPG/PGP but now it causes failures and scary warnings. (See also 035f4876843bc92c5a3ee682ace91a38812dc7f6 which introduced GPG/PGP) [skip ci] --- unrealircd.in | 1 + 1 file changed, 1 insertion(+) diff --git a/unrealircd.in b/unrealircd.in index 8f792ee8e..9099d2c25 100644 --- a/unrealircd.in +++ b/unrealircd.in @@ -274,6 +274,7 @@ elif [ "$1" = "hot-patch" -o "$1" = "cold-patch" ] ; then # A patch file of 0 bytes means the patch is not needed if [ -f patch -a ! -s patch ]; then echo "This UnrealIRCd version does not require that patch" + exit 1 fi wget -O patch.asc "https://www.unrealircd.org/patch?type=$1&patch=$2&version=$UNREALVER&sig=1" || exit 1