Skip to content

fix(access): ensure symlinks are followed when checking for executable flag#1253

Open
boneskull wants to merge 1 commit intostreamich:masterfrom
boneskull:fix-1252
Open

fix(access): ensure symlinks are followed when checking for executable flag#1253
boneskull wants to merge 1 commit intostreamich:masterfrom
boneskull:fix-1252

Conversation

@boneskull
Copy link
Copy Markdown

This is a one-line change in volume.ts which always resolves paths in the inner _access implementation.

The result is that executable symlinks are now detected properly by access(), accessSync() and promises.access().

Added test suites for each of APIs asserting as much.

Fixes #1252

…e flag

This is a one-line change in `volume.ts` which always resolves paths in the inner `_access` implementation.

The result is that executable symlinks are now detected properly by `access()`, `accessSync()` and `promises.access()`.

Added test suites for each of APIs asserting as much.

Fixes streamich#1252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

access/accessSync w/ X_OK does not follow symlinks

1 participant