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

@yagehu yagehu force-pushed the symlink-abs-path branch from c7a1fd4 to d633344 Compare June 12, 2024 18:21
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>
@yagehu yagehu force-pushed the symlink-abs-path branch from d633344 to 0ffc7c8 Compare June 12, 2024 18:23
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
@yagehu yagehu deleted the symlink-abs-path branch October 19, 2024 14:57
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