From 59bf33a5d26542f4dc01876b0e32a9a9057ae14f Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Mon, 22 May 2023 15:47:35 -0400 Subject: Fixed issue with permissions not being recorded correctly. --- src/lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3