From: Petr Baudis <pasky@ucw.cz>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] deb-pkg: Fix packaging with non-standard umask
Date: Fri, 11 May 2012 16:49:49 +0200 [thread overview]
Message-ID: <20120511144949.GL24321@machine.or.cz> (raw)
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=""
next reply other threads:[~2012-05-11 15:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-11 14:49 Petr Baudis [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-03-16 2:59 [PATCH] deb-pkg: Fix packaging with non-standard umask Petr Baudis
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=20120511144949.GL24321@machine.or.cz \
--to=pasky@ucw.cz \
--cc=linux-kernel@vger.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