Repository navigation
v2.8.19 - reader checks the opened file; read-only legacy config stays read-only
Reader checks the opened file; read-only legacy config stays read-only.
The plugin dist changes in lib/repo-fs.js only, so this is a PATCH release. scripts/configure.mjs and its test are repository scripts, outside the dist.
Fixed
- The reader compares the opened file's device and inode with the ones it checked. Before, the read did not check that the file it opened was the file it had checked, so a file swapped in between could be read in its place. The reader now refuses a swapped file. — test:
lib/repo-fs-toctou.test.js
Changed
- The migration keeps a read-only legacy config read-only when it moves the file aside, and its Migrated line says
read-only as it was.