Skip to contentSkip to conversation

deb-pkg: Fix packaging with non-standard umask

PATCH New Petr Baudis 1 participant 1 message May 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 deb-pkg: Fix packaging with non-standard umask

When building with a different umask than 022 (e.g. umask 027), the packaged files would carry the non-standard rights over, wreaking havoc especially in case of linux-libc-dev.

This patch fixes the problem for sane umasks.

package/builddeb renamed from package/builddeb~ +1 -1
@@ -23,7 +23,7 @@
 
 	# Fix ownership and permissions
 	chown -R root:root "$pdir"
-	chmod -R go-w "$pdir"
+	chmod -R u+rwX,go+rX-w "$pdir"
 
 	# Attempt to find the correct Debian architecture
 	local forcearch="" debarch=""