aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-05-22 15:47:35 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-05-22 15:47:35 -0400
commit59bf33a5d26542f4dc01876b0e32a9a9057ae14f (patch)
treedbbcc666423f9af196b5fcebcc46066ec7c4cb75
parent3faf74e5d881fdc63a8c204801c0db2792e8f7db (diff)
downloadlite-xl-plugin-manager-59bf33a5d26542f4dc01876b0e32a9a9057ae14f.tar.gz
lite-xl-plugin-manager-59bf33a5d26542f4dc01876b0e32a9a9057ae14f.zip
Fixed issue with permissions not being recorded correctly.
-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);