Skip to content

v2.8.19 - reader checks the opened file; read-only legacy config stays read-only

Choose a tag to compare

@github-actions github-actions released this 22 Nov 05:18
· 6 commits to main since this release
v2.8.19
e987df7

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.