[
https://issues.apache.org/jira/browse/MESOS-1051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13918134#comment-13918134
]
Anton Lindström commented on MESOS-1051:
----------------------------------------
I think the following should work on both Linux and OS X;
{code}
tar -C '<output directory>' -xJf '<tar.gz>'
{code}
Just have to validate so it behaves as it should.
> tar command used in fetcher not portable to OS X
> ------------------------------------------------
>
> Key: MESOS-1051
> URL: https://issues.apache.org/jira/browse/MESOS-1051
> Project: Mesos
> Issue Type: Bug
> Components: containerization
> Affects Versions: 0.18.0
> Reporter: Robert Lacroix
>
> {code}
> tar -C '<output directory>' xJf '<tar.gz>'
> {code}
> used in
> [fetcher.cpp|https://github.com/apache/mesos/blob/f90fe7641ea8f7066a6a1171a24ddaa8dc30e789/src/launcher/fetcher.cpp#L47]
> works on Linux, but is not portable to OS X and fails with
> {code}
> tar: Must specify one of -c, -r, -t, -u, -x
> {code}
> It should be called using portable arguments instead.
> This is a new regression in 0.18.
--
This message was sent by Atlassian JIRA
(v6.2#6252)