diff options
author | Helmut Grohne <helmut@subdivi.de> | 2015-02-24 20:22:31 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-25 14:06:38 +0100 |
commit | c7e77f61a42aa96ad1ca25b2f9fa2af3ffe35af0 (patch) | |
tree | 4d32d1610cfac4653ade7f410c4b7727bf454378 /etc/pbuilderrc | |
parent | 284d128d9729cf0a8288105861d583850b451703 (diff) | |
download | jenkins.debian.net-c7e77f61a42aa96ad1ca25b2f9fa2af3ffe35af0.tar.xz |
different approach to umask changes
* Add it to pbuilderrc, because it is sourced by pbuilder.
* Vary 0022 (default) and 0002 as both are common combinations and the
write bit actually shows up in ar archives (static libraries).
Diffstat (limited to 'etc/pbuilderrc')
-rw-r--r-- | etc/pbuilderrc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/pbuilderrc b/etc/pbuilderrc index 964c7cad..c3385f7d 100644 --- a/etc/pbuilderrc +++ b/etc/pbuilderrc @@ -11,3 +11,11 @@ export http_proxy="http://localhost:3128" COMPRESSPROG="pigz" # remove /run/shm bindmount once we are running jessie - this is a workaround for #700591 BINDMOUNTS="$BINDMOUNTS /run/shm /dev/shm" + +if [ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ]; then + # regular build + umask 0022 +else + # modified build + umask 0002 +fi |