Skip to content

fs: fix edge case in readFileSync utf8 fast path

Rodrigo Muino Tomonari requested to merge github/fork/richardlau/fixfastpath into main

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: https://github.com/nodejs/node/issues/52079 Refs: https://github.com/nodejs/node/pull/49691

Merge request reports

Loading