added mode mask

This commit is contained in:
Mathias Buus 2013-12-21 02:10:18 +01:00
parent 23fa6ae77b
commit 526b5f0125

View file

@ -90,7 +90,7 @@ exports.encode = function(opts) {
}
buf.write(name);
buf.write(encodeOct(opts.mode, 6), 100);
buf.write(encodeOct(opts.mode & 07777, 6), 100);
buf.write(encodeOct(opts.uid, 6), 108);
buf.write(encodeOct(opts.gid, 6), 116);
buf.write(encodeOct(opts.size, 11), 124);