lkml.org 
[lkml]   [2010]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.6.33: deb-pkg: Fix package creation with arbitrary umask

The used umask has influence on the permissions of the created files,
resulting in errors such as below when the umask is too restrictive:

dpkg-deb: building package `linux-image-2.6.33' in `../linux-image-2.6.33_2.6.33-3_i386.deb'.
dpkg-deb: control directory has bad permissions 700 (must be >=0755 and <=0775)
make[1]: *** [deb-pkg] Error 2

Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
---
scripts/package/builddeb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 8b357b0..ddca190 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -21,7 +21,7 @@ create_package() {

# Fix ownership and permissions
chown -R root:root "$pdir"
- chmod -R go-w "$pdir"
+ chmod -R go=u-w "$pdir"

# Create the package
dpkg-gencontrol -isp -p$pname -P"$pdir"
--
1.5.6.5

Adam
--
Adam adam@os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/


\
 
 \ /
  Last update: 2010-02-27 14:19    [W:0.033 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site