Skip to content

Commit 3fc5767

Browse files
jamessandersisaacs
authored andcommitted
tar fixes for FreeBSD
Use the p flag to drop file owner/group information. Specify "f -" rather than assuming stdin.
1 parent 0e3ff99 commit 3fc5767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function unpackTar (tarball, unpackTarget, cb) {
213213
// gzip {tarball} --decompress --stdout | tar xf - --strip-components=1 -C {unpackTarget}
214214
pipe( spawn(npm.config.get("gzipbin"), ["--decompress", "--stdout", tarball])
215215
, spawn( npm.config.get("tar")
216-
, ["vx", "--strip-components=1", "-C", unpackTarget]
216+
, ["vxpf", "-", "--strip-components=1", "-C", unpackTarget]
217217
)
218218
, log.er(cb, "Failed unpacking the tarball.\n"
219219
+ "This is very rare. Perhaps the 'gzip' or 'tar' configs\n"

0 commit comments

Comments
 (0)