aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 9df4890..6d1feae 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -649,7 +649,7 @@ static int lpm_extract(lua_State* L) {
if (attr & FA_DIREC)
m = (S_IFDIR | (m & ~S_IFMT)) | S_IXUSR | S_IXGRP | S_IXOTH;
} else {
- m = (attr >> 16) & ~0222;
+ m = (attr >> 16);
}
if (chmod(target, m)) {
zip_fclose(zip_file);