Control: tag -1 pending

On Tue,  9 Dec 2014 07:56:51 +0600 Boris Egorov <ego...@linux.com> wrote:
> Closes: #633582
> Signed-off-by: Boris Egorov <ego...@linux.com>

Applied; sorry for the delay.

Ben.

> ---
>  mkinitramfs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mkinitramfs b/mkinitramfs
> index 5baa955..4552046 100755
> --- a/mkinitramfs
> +++ b/mkinitramfs
> @@ -343,7 +343,7 @@ fi
>  
>  (
>  # preserve permissions if root builds the image, see #633582
> -[ "$UID" != 0 ] && cpio_owner_root="-R 0:0"
> +[ "$(id -ru)" != 0 ] && cpio_owner_root="-R 0:0"
>  
>  # work around lack of "set -o pipefail" for the following pipe:
>  # cd "${DESTDIR}" && find . | cpio --quiet $cpio_owner_root -o -H newc | 
>gzip >>"${outfile}" || exit 1
> -- 
> 2.1.3
> 
> 
> 
-- 
Ben Hutchings
Life would be so much easier if we could look at the source code.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to