mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
These demonstrate that the replay detection for pending opens either doesn't exist (for the share_access=NONE => SHARING_VIOLATION case) or return the wrong status code => ACCESS_DENIED instead of FILE_NOT_AVAILABLE. Windows clients transparently retry after FILE_NOT_AVAILABLE, while they pass ACCESS_DENIED directly to the application. I'll report that to dochelp@microsoft.com in order to clarify the situation. In the meantime I added tests with a '-windows' suffix, which demostrate the current windows server behavior, while the tests with a '-sane' suffix expect the behavior that whould make windows clients happy. For Samba I'll implement the '-sane' behavior that detects all replays and returns FILE_NOT_AVAILABLE if the original request is still pending. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14449 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>