mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-25 23:30:28 +00:00
* fix(windows): guard staged installer directories during handoff Create restrictive staging directories and retain non-delete-sharing handles while CMD consumes packages, scripts and shortcuts. Adapt output paths and cleanup, and add a directory-replacement regression. Validated with 11 focused Windows tests. Directory protection remains tied to the lifetime of the creating process. Signed-off-by: fufesou <linlong1266@gmail.com> * test(windows): streamline installer directory guard tests Keep installer-file tests in their original inline module and remove the duplicate CMD-copy check from the directory replacement regression. Preserve directory protection and existing handoff coverage. Validation: Windows library test compilation, four focused tests, rustfmt and git diff --check. Signed-off-by: fufesou <linlong1266@gmail.com> * fix(windows): use plain rd for empty staging directories Remove the inapplicable /q switch from non-recursive staging-directory cleanup. Keep recursive deletion confined to the runner directory. Validated with Windows library test compilation, four focused tests and isolated CMD probes for owner termination, nonempty staging directories and exit-code preservation. Signed-off-by: fufesou <linlong1266@gmail.com> * test(windows): pin installer staging directory permissions Check effective ordinary-owner directory rights independently of the sharing guard. Clarify guard lifetime and the Rust and CMD cleanup responsibilities. Validation: Windows library test compilation, four focused tests, rustfmt and git diff --check. Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>