From: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
To: linux-kernel@vger.kernel.org
Cc: stable@kernel.org
Subject: [PATCH] 2.6.33: deb-pkg: Fix package creation with arbitrary umask
Date: Sat, 27 Feb 2010 13:35:30 +0100 [thread overview]
Message-ID: <20100227123530.GA15985@os.inf.tu-dresden.de> (raw)
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/
reply other threads:[~2010-02-27 13:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100227123530.GA15985@os.inf.tu-dresden.de \
--to=adam@os.inf.tu-dresden.de \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®