fix(native): decode Mach protection bits in their proper positions (#586)
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
@@ -253,9 +253,9 @@ const permissions = (raw: string | null) => {
|
||||
const numericValue = numeric(raw);
|
||||
if (numericValue !== null)
|
||||
return {
|
||||
read: (numericValue & 4) !== 0,
|
||||
read: (numericValue & 1) !== 0,
|
||||
write: (numericValue & 2) !== 0,
|
||||
execute: (numericValue & 1) !== 0,
|
||||
execute: (numericValue & 4) !== 0,
|
||||
raw,
|
||||
};
|
||||
if (/^[r-][w-][x-]$/u.test(raw))
|
||||
|
||||
Reference in New Issue
Block a user