提交 a5e40d86 编写于 作者: S Sven Joachim 提交者: Masahiro Yamada

builddeb: Consolidate consecutive chmod calls into one

No need to call chmod three times when it can do everything at once.
Signed-off-by: NSven Joachim <svenjoac@gmx.de>
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
上级 ec61452a
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册