fs: fix writeFile[Sync] for non-seekable files · nodejs/node@1c4f4cc · GitHub
Skip to content

Commit 1c4f4cc

Browse files
mildsunriseMylesBorins
authored andcommitted
fs: fix writeFile[Sync] for non-seekable files
Completely disables the use of positioned writes at writeFile and writeFileSync, which allows it to work with non-seekable files. Fixes: #31926 Backport-PR-URL: #32172 PR-URL: #32006 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 1e05ddf commit 1c4f4cc

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

lib/fs.js

Lines changed: 5 additions & 13 deletions

0 commit comments

Comments
 (0)