You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2020/09/11 14:26:17 UTC

[mesos] 04/07: Added `--no-same-owner` option to tar command.

This is an automated email from the ASF dual-hosted git repository.

vinodkone pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 28cabfc61248908c42c91d4287730cad42dd0400
Author: Vinod Kone <vi...@gmail.com>
AuthorDate: Thu Sep 10 15:18:44 2020 -0500

    Added `--no-same-owner` option to tar command.
    
    This ensures extracted tarballs are owned by root when running the
    build as root.
    
    Review: https://reviews.apache.org/r/72859
---
 3rdparty/stout/3rdparty/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/3rdparty/stout/3rdparty/Makefile.am b/3rdparty/stout/3rdparty/Makefile.am
index 5a88889..7edb7d2 100644
--- a/3rdparty/stout/3rdparty/Makefile.am
+++ b/3rdparty/stout/3rdparty/Makefile.am
@@ -71,7 +71,7 @@ CLEAN_EXTRACTED =	\
 # which cause the packages to get extracted as necessary. We also
 # apply any patches as appropriate.
 %-stamp: $(BUNDLED_DIR)/%.tar.gz
-	gzip -d -c $^ | tar xf -
+	gzip -d -c $^ | tar xf - --no-same-owner
 	test ! -e $(top_srcdir)/../$*.patch || patch -d $* -p1 <$(top_srcdir)/../$*.patch
 	touch $@