summaryrefslogtreecommitdiff
path: root/scripts/package
diff options
context:
space:
mode:
authorSven Joachim <svenjoac@gmx.de>2020-10-29 18:39:10 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2023-01-26 06:43:33 +0300
commita5e40d86317774ebc94307da395817902ef78252 (patch)
treee54d94f7871a89a45cccbc8a2e0bb1059cb5cc7c /scripts/package
parentec61452aaad6bb0d4f3f4d4b78d27bed90eb2494 (diff)
downloadlinux-a5e40d86317774ebc94307da395817902ef78252.tar.xz
builddeb: Consolidate consecutive chmod calls into one
No need to call chmod three times when it can do everything at once. Signed-off-by: Sven Joachim <svenjoac@gmx.de> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/package')
-rwxr-xr-xscripts/package/builddeb8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 67cd420dcf89..ff5e7d8e380b 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -42,11 +42,9 @@ create_package() {
else
chown -R root:root "$pdir"
fi
- chmod -R go-w "$pdir"
- # in case we are in a restrictive umask environment like 0077
- chmod -R a+rX "$pdir"
- # in case we build in a setuid/setgid directory
- chmod -R ug-s "$pdir"
+ # a+rX in case we are in a restrictive umask environment like 0077
+ # ug-s in case we build in a setuid/setgid directory
+ chmod -R go-w,a+rX,ug-s "$pdir"
# Create the package
dpkg-gencontrol -p$pname -P"$pdir"