[PATCH] builddeb: Fix packaged file permissions

From: Ben Hutchings
Date: Thu Sep 03 2009 - 18:00:41 EST


The packaged files' permissions are implicitly dependent on the
current umask. Not only can this result in surprisingly restrictive
permissions, but dpkg-deb will fail if the DEBIAN directory does not
have permissions 755 or 775. Therefore, set the umask to 022 before
building a package.

Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
---
scripts/package/builddeb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 8b357b0..24cfd80 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -12,6 +12,8 @@

set -e

+umask 022
+
create_package() {
local pname="$1" pdir="$2"

--
1.6.3.3

--
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/