From f41a0aa4c48c157c92eb0f032b92d74f042a26ab Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 8 Jul 2011 08:45:36 -0700 Subject: [PATCH] Close #1128 Use -o instead of --no-same-owner --- lib/utils/tar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/tar.js b/lib/utils/tar.js index 3d5161e0b44..2aa8cd12fd8 100644 --- a/lib/utils/tar.js +++ b/lib/utils/tar.js @@ -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,