Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if creating symlink to absolute path #272

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

yagehu
Copy link
Contributor

@yagehu yagehu commented Jun 12, 2024

This commit adds an absolute path check to path_symlink. This behavior is specified by WASI.

fixes #271

This commit adds an absolute path check to `path_symlink`. This behavior
is specified by [WASI][1].

[1]: https://github.com/WebAssembly/wasi-filesystem/blob/main/path-resolution.md#symlinks

fixes nodejs#271

Signed-off-by: Yage Hu <me@huyage.dev>
Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mhdawson mhdawson merged commit c8d4f01 into nodejs:main Jul 3, 2024
7 checks passed
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.

Should not be able to create a symlink to absolute path
2 participants