builddeb: Fix packaged file permissions
PATCH 1/1 builddeb: Fix packaged file permissions
The packaged files' permissions are implicitly dependent on the current umask. Not only can this result in surprisingly restrictive permissions, but dpkg-deb will fail if the DEBIAN directory does not have permissions 755 or 775. Therefore, set the umask to 022 before building a package.
Signed-off-by Ben Hutchings <[email protected]>
--- scripts/package/builddeb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
scripts/package/builddeb +2 -0
@@ -12,6 +12,8 @@ set -e +umask 022 + create_package() { local pname="$1" pdir="$2"
Signature · 1 line
1.6.3.3
Added linux-kbuild to CC.
Quoted 7 lines · Ben Hutchings
The packaged files' permissions are implicitly dependent on the current umask. Not only can this result in surprisingly restrictive permissions, but dpkg-deb will fail if the DEBIAN directory does not have permissions 755 or 775. Therefore, set the umask to 022 before building a package.
Signed-off-by Ben Hutchings <[email protected]>
Acked-by Frans Pop <[email protected]>
Quoted 17 lines
--- scripts/package/builddeb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)scripts/package/builddeb +2
-0@@ -12,6 +12,8 @@ set -e +umask 022 + create_package() { local pname="$1" pdir="$2"