Skip to content

fs: open symlinks O_RDONLY in lchmod#63002

Open
fru1tworld wants to merge 1 commit intonodejs:mainfrom
fru1tworld:fix/23736-lchmod-rdonly
Open

fs: open symlinks O_RDONLY in lchmod#63002
fru1tworld wants to merge 1 commit intonodejs:mainfrom
fru1tworld:fix/23736-lchmod-rdonly

Conversation

@fru1tworld
Copy link
Copy Markdown

fchmod does not require write access, so opening the symlink with
O_RDONLY is sufficient.

Refs: #23736

fchmod does not require write access, so O_WRONLY is unnecessary.

Refs: nodejs#23736
@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants