[PATCH] deb-pkg: Fix packaging with non-standard umask

From: Petr Baudis
Date: Fri May 11 2012 - 10:59:57 EST

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.

Signed-off-by: Petr Baudis <pasky@xxxxxx>

--- scripts/package/builddeb~ 2012-03-01 02:28:15.571721530 +0100
+++ scripts/package/builddeb 2012-03-15 20:04:49.497938508 +0100
@@ -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=""
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/