From c7dfe868e77d9c00cda71347b424308fffa74807 Mon Sep 17 00:00:00 2001
From: "Achim D. Brucker" <adbrucker@0x5f.org>
Date: Fri, 11 Aug 2017 06:06:39 +0100
Subject: [PATCH] Bug fix: ensure that the Debian control directory has
 permissions 0755.

---
 contrib/packaging/debian/make_deb.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/contrib/packaging/debian/make_deb.sh b/contrib/packaging/debian/make_deb.sh
index f049a10..fe8fe37 100755
--- a/contrib/packaging/debian/make_deb.sh
+++ b/contrib/packaging/debian/make_deb.sh
@@ -44,6 +44,7 @@ make -C "$P/../../../" \
 SIZE=$(du -s $D | awk '{print $1}')
 
 cp -r "$P/debian" "$D/DEBIAN"
+chmod 0755 "$D/DEBIAN"
 [ -d "$D/etc" ] && (cd $D; find etc -type f) > "$D/DEBIAN/conffiles"
 sed -i -re "s#Version:.+#Version: $V#" "$D/DEBIAN/control"
 echo "Installed-Size: $SIZE" >> "$D/DEBIAN/control"
-- 
2.39.5