From e42cb7ab085d11a8db7f70599c965e256add925b Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Wed, 3 Jun 2020 09:26:14 +0100 Subject: [PATCH] Don't try to preserve owner/permissions when extracting tarball When run as root, `tar` defaults to `--same-owner --same-permissions`. This is reported to cause many errors: tar: .dropbox-dist/VERSION: Cannot change ownership to uid 1000, gid 1000: Operation not permitted ... tar: Exiting with failure status due to previous errors While this does not actually cause the apply_extra script to fail, it is ugly! Fixes #122 --- com.dropbox.Client.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.dropbox.Client.json b/com.dropbox.Client.json index 6126e62..80997fa 100644 --- a/com.dropbox.Client.json +++ b/com.dropbox.Client.json @@ -112,7 +112,7 @@ "type": "script", "dest-filename": "apply_extra", "commands": [ - "tar xf dropbox.tar.gz", + "tar -xf --no-same-owner --no-same-permissions dropbox.tar.gz", "rm -f dropbox.tar.gz", "chmod a+xr ." ]