Skip to content

Commit

Permalink
Don't try to preserve owner/permissions when extracting tarball
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wjt committed Jun 3, 2020
1 parent f89b9ff commit e42cb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com.dropbox.Client.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ."
]
Expand Down

0 comments on commit e42cb7a

Please sign in to comment.