Skip to content

Commit

Permalink
Use existing whitelist for gid and uid
Browse files Browse the repository at this point in the history
  • Loading branch information
daemonl committed Jul 16, 2015
1 parent 9f41757 commit 37e786c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tasks/lib/compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module.exports = function(grunt) {
var archive = archiver.create(mode, exports.options);
var dest = exports.options.archive;

var dataWhitelist = ['comment', 'date', 'mode', 'store'];
var dataWhitelist = ['comment', 'date', 'mode', 'store', 'gid', 'uid'];
var sourcePaths = {};

// Ensure dest folder exists
Expand Down Expand Up @@ -158,13 +158,6 @@ module.exports = function(grunt) {
stats: fstat
};

if (file.gid != null){
fileData.gid = file.gid
}
if (file.uid != null){
fileData.uid = file.uid
}

for (var i = 0; i < dataWhitelist.length; i++) {
if (typeof file[dataWhitelist[i]] === 'undefined') {
continue;
Expand Down

0 comments on commit 37e786c

Please sign in to comment.