added mode mask
This commit is contained in:
parent
23fa6ae77b
commit
526b5f0125
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ exports.encode = function(opts) {
|
||||||
}
|
}
|
||||||
|
|
||||||
buf.write(name);
|
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.uid, 6), 108);
|
||||||
buf.write(encodeOct(opts.gid, 6), 116);
|
buf.write(encodeOct(opts.gid, 6), 116);
|
||||||
buf.write(encodeOct(opts.size, 11), 124);
|
buf.write(encodeOct(opts.size, 11), 124);
|
||||||
|
|
Loading…
Reference in a new issue