Skip to content

fs: fix edge case in readFileSync utf8 fast path - #52101

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
richardlau:fixfastpath
Mar 18, 2024
Merged

fs: fix edge case in readFileSync utf8 fast path#52101
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
richardlau:fixfastpath

Conversation

@richardlau

Copy link
Copy Markdown
Member

Fix a file permissions regression when fs.readFileSync() is called in append mode on a file that does not already exist introduced by the fast path for utf8 encoding.

Fixes: #52079
Refs: #49691

Fix a file permissions regression when `fs.readFileSync()` is called in
append mode on a file that does not already exist introduced by the
fast path for utf8 encoding.
@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Mar 15, 2024
@richardlaurichardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 15, 2024
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 15, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@richardlaurichardlau added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 16, 2024
@H4adH4ad added the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 18, 2024
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 18, 2024
@nodejs-github-bot
nodejs-github-bot merged commit 39f1b89 into nodejs:mainMar 18, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 39f1b89

@richardlau
richardlau deleted the fixfastpath branch March 18, 2024 12:54
marco-ippolito pushed a commit that referenced this pull request May 2, 2024
Fix a file permissions regression when `fs.readFileSync()` is called in
append mode on a file that does not already exist introduced by the
fast path for utf8 encoding.
PR-URL: #52101Fixes: #52079
Refs: #49691
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
@marco-ippolitomarco-ippolito mentioned this pull request May 2, 2024
marco-ippolito pushed a commit that referenced this pull request May 3, 2024
Fix a file permissions regression when `fs.readFileSync()` is called in
append mode on a file that does not already exist introduced by the
fast path for utf8 encoding.
PR-URL: #52101Fixes: #52079
Refs: #49691
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.fsIssues and PRs related to the fs subsystem / file system.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fs.writeFileSync in Node 20 failed to write file in TMPDIR

5 participants

@richardlau@nodejs-github-bot@lpinca@anonrig@H4ad