参考所有分组,完成尽量多的内容。禁止顺手扩功能 smoke:锁定OPFS参数保存顺序
结论:按 LinuxCNC rs274ngc_pre.cc save_parameters() 的 .new、.bak、unlink/link/rename 顺序补强 OPFS/app/browser smoke 守卫,并验证临时参数文件不会残留在 OPFS。
This commit is contained in:
@@ -14,6 +14,9 @@ persistence. It is a policy and bridge map only; it must not add independent fil
|
||||
- `src/emc/rs274ngc/rs274ngc_pre.cc` implements
|
||||
`Interp::save_parameters()` for `filename + ".new"`, backup, and replacement
|
||||
writes.
|
||||
- `src/emc/rs274ngc/rs274ngc_pre.cc` unlinks `filename + ".bak"`, links the
|
||||
previous parameter file to that backup path, then renames `filename + ".new"`
|
||||
over the configured parameter file.
|
||||
|
||||
## OPFS Coverage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user