Skip to content

Don't pass unchanged owner IDs to VirtualSetAttributes from WinFSP - #276

Open
tomgr wants to merge 1 commit into
buildbarn:mainfrom
tomgr:winfsp-overwrite-owner-ids
Open

tomgr wants to merge 1 commit into
buildbarn:mainfrom
tomgr:winfsp-overwrite-owner-ids

Conversation

@tomgr

@tomgr tomgr commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

526ba77 made VirtualSetAttributes fail when the input carries owner IDs. Unfortunately that broke WinFSP as I accidentally made two WinFSP functions pass owner IDs without needing to:

  • Overwrite fetched the file's current attributes, so opening in some modes would fail if the file had owner IDs, like bb_worker sets.
  • SetSecurity always passed the owner and group, so every change to a file's DACL was rejected.

I've added some integration tests to catch these in the future. (I had Claude help write these.)

526ba77 made VirtualSetAttributes fail when the input carries owner IDs.
Unfortunately that broke WinFSP as I accidentally made two WinFSP
functions pass owner IDs without needing to:

* Overwrite fetched the file's current attributes, so opening in some
  modes would fail if the file had owner IDs, like bb_worker sets.
* SetSecurity always passed the owner and group, so every change to a
  file's DACL was rejected.

I've added some integration tests to catch these in the future.
@tomgr
tomgr marked this pull request as ready for review October 8, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant