Skip to content

Commit

Permalink
Close npm#1128 Use -o instead of --no-same-owner
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jul 8, 2011
1 parent 5f791af commit f41a0aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/tar.js
Expand Up @@ -166,13 +166,13 @@ function gunzTarPerm (tarball, tmp, dMode, fMode, uid, gid, cb) {
if (!fMode) fMode = FMODE
log.silly([dMode.toString(8), fMode.toString(8)], "gunzTarPerm modes")
//console.error(npm.config.get("gzipbin")+" --decompress --stdout "
// +tarball+" | "+npm.config.get("tar")+" -mvxpf - --no-same-owner -C "
// +tarball+" | "+npm.config.get("tar")+" -mvxpf - -o -C "
// +tmp)
pipe( spawn( npm.config.get("gzipbin")
, ["--decompress", "--stdout", tarball]
, process.env, false )
, spawn( npm.config.get("tar")
, ["-mvxpf", "-", "--no-same-owner", "-C", tmp]
, ["-mvxpf", "-", "-o", "-C", tmp]
, process.env, false )
, function (er) {
// if we're not doing ownership management,
Expand Down

0 comments on commit f41a0aa

Please sign in to comment.