fix: acl path needs to be resolved

This commit is contained in:
Aarnav Tale 2024-03-30 01:56:06 -04:00
parent 4e129d527a
commit 3f65c7e610
No known key found for this signature in database

View File

@ -212,6 +212,7 @@ async function hasAcl() {
}
try {
path = resolve(path)
await access(path, constants.R_OK)
return true
} catch {}
@ -235,6 +236,7 @@ async function hasAclW() {
}
try {
path = resolve(path)
await access(path, constants.W_OK)
return true
} catch {}