Re: [PATCH (dbscripts)] Fix permissions of incoming packages.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I doubt that running find is needed, just run chmod directly on the
files being uploaded by commitpkg, or have repo-add chmod the
individual files (it's running as root right?)

On Tue, Mar 9, 2010 at 18:48, Chris Brannon <cmbrannon79@xxxxxxxxx> wrote:
> This patch changes the permissions of uploaded packages to 664, before
> they are moved from the staging directory.  The commitpkg script included
> in devtools uses rsync to upload packages, and rsync preserves permissions.
> This causes problems whenever permissions are too restrictive on the
> uploader's machine.
>
> Signed-off-by: Chris Brannon <cmbrannon79@xxxxxxxxx>
> ---
>  db-update |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/db-update b/db-update
> index 0973bf3..3f36332 100755
> --- a/db-update
> +++ b/db-update
> @@ -87,6 +87,11 @@ for current_arch in ${ARCHES[@]} any; do
>        done
>  done
>
> +# Give permissions of 664 to all files under $stagedir.
> +# I.E., readable-writable by user and group; readable by others.
> +# This insures that packages enter the ftp area with correct permissions.
> +find "$stagedir" -print0 -type f |xargs -0 chmod 664
> +
>  # Process architecture-independent packages first.
>  if [ -d "$stagedir" ]; then
>        ANYPKGS="$(getpkgfiles $stagedir/*-any$PKGEXT 2>/dev/null)"
> --
> 1.7.0.1
>
>


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux