GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — vfs: enforce readonly state on open handles by harjothkhara · Pull Request #64403 · nodejs/node Conversation
|
|
Tested this end to end. Before the fix: the example from #64401 still writes to the file after it's set read-only — bug confirmed. After the fix: that write is blocked with Other write paths (truncate, append, write streams) are blocked too, and read-only handles still give the original |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #64403 +/- ## ========================================== - Coverage 90.51% 90.49% -0.03% ========================================== Files 797 797 Lines 277688 277706 +18 Branches 53356 53353 -3 ========================================== - Hits 251338 251297 -41 - Misses 16753 16798 +45 - Partials 9597 9611 +14
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
vfs is having a big change in #63653, and many PRs are waiting for it to land. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@trivikr @mcollina this was waiting on #63653, which closed on Aug 31 without landing. Is this reviewable now, or should I rework it to fit the current vfs direction (#65798)? I can rebase and re-run CI. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@harjothkhara it was actually landed manually. If you rebase, this can move. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: harjoth <[email protected]> Fixes: nodejs#64401 Assisted-by: Codex
78a5dec to
298698e
Compare
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 06550c7 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: harjoth <[email protected]> Fixes: #64401 Assisted-by: Codex PR-URL: #64403 Reviewed-By: Matteo Collina <[email protected]>
Signed-off-by: harjoth <[email protected]> Fixes: nodejs#64401 Assisted-by: Codex PR-URL: nodejs#64403 Reviewed-By: Matteo Collina <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
vfs: MemoryProvider.setReadOnly() does not prevent writes through existing file descriptors
There was an error while loading. Please reload this page.