[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200909042055.40187.elendil@planet.nl>
Date: Fri, 4 Sep 2009 20:55:39 +0200
From: Frans Pop <elendil@...net.nl>
To: Ben Hutchings <ben@...adent.org.uk>
Cc: linux-kernel@...r.kernel.org, maximilian attems <max@...o.at>,
linux-kbuild@...r.kernel.org
Subject: Re: [PATCH] builddeb: Fix packaged file permissions
Added linux-kbuild to CC.
On Friday 04 September 2009, Ben Hutchings wrote:
> 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 <ben@...adent.org.uk>
Acked-by: Frans Pop <elendil@...net.nl>
> ---
> scripts/package/builddeb | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 8b357b0..24cfd80 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -12,6 +12,8 @@
>
> set -e
>
> +umask 022
> +
> create_package() {
> local pname="$1" pdir="$2"
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists