VFS DeleteFileW hides a read-only original and reports success #2945
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by CryingLaughing on 2026-11-27T03:19:53Z.
With the VFS hooks installed,
DeleteFileW(L"GAME:\\readonly-original.txt")returns success for a read-only game file and records a deletion marker. The host file still has its read-only attribute and original contents, but the marker hides the game path. Native Windows returnedFALSEandERROR_ACCESS_DENIED(5) for the corresponding unvirtualized read-only control. WindowsDeleteFileWcontractThe synthetic integration fixture creates a read-only original, a read-only overlay copy, and writable controls. A child process installs the Win32 file hooks and calls
DeleteFileWon the virtual paths. The fixture verifies returned errors, visibility, contents and deletion markers. It also checks that a read-only move succeeds and reopens the VFS to verify which markers persist. Synthetic fixture and archived fixb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7plus identical test-only fixture.xcl_whiteouts.80cf435643189a0ea2ec31f4e4e5642539b47815ERROR_ACCESS_DENIEDand preserved the files. Only the writable-original deletion and the read-only move persisted markers.Both direct executions printed
VFS: 31 file hooks active. The read-only overlay file in the candidate direct fixture had a 442-character host path. All four serial runs had zero ignored tests and zero capability skips. They ran on Windows 11 25H2 build 26200.9974, Intel Core i5-13600K, with fresh private directories andXCL_NETWORK=0. The full fixture self-launches its own integration executable for the hooked child. For the separate direct reproduction, setXCL_VFS_READONLY_DELETE_TEST_ROOTto a private tree staged with the same synthetic files.The base binary SHA-256 was
55433b030e8d1f66e8c3f7caacbbda2cb94efc700313059acfa12186b535ec7d. The candidate binary SHA-256 was3d4be8d251afd159d6200a14c0d1959d8599f5e4b0b21e5a38b030e9d7c3b6d5. Current main8b957bec6f82495aec940944c6bf47faa02db590matches the archived base’svfs.rsandvfs_hooks.rsbyte for byte. The replay exercised the archived binaries. Pinned main VFS source · Pinned main hook sourceThis report covers
DeleteFileWon a VFS path. The related #998 issue covers deletion throughSetFileInformationByHandle. The separately archived retail smoke pair measured startup stability. Whether the title exercised the affected VFS path remains unknown. Related #998 · Archived retail smokeAI use