lkml.org 
[lkml]   [2012]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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.

Signed-off-by: Petr Baudis <pasky@ucw.cz>

--- 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=""

--
Petr "Pasky" Baudis
Smart data structures and dumb code works a lot better
than the other way around. -- Eric S. Raymond


\
 
 \ /
  Last update: 2012-03-16 04:11    [W:0.020 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site