diff --git a/adm-zip.js b/adm-zip.js index d9acf0c..4a2f661 100644 --- a/adm-zip.js +++ b/adm-zip.js @@ -288,9 +288,9 @@ module.exports = function(/*String*/input) { if (!attr) { if (entry.isDirectory) { - attr = (040755 << 16) | 0x10; // (permissions drwxr-xr-x) + (MS-DOS directory flag) + attr = (0o40755 << 16) | 0x10; // (permissions drwxr-xr-x) + (MS-DOS directory flag) } else { - attr = 0644 << 16; // permissions -r-wr--r-- + attr = 0o644 << 16; // permissions -r-wr--r-- } }