Does the CreateDisposition flag of a client depend on Server's response ?

varun mittal vmittal05 at gmail.com
Fri Jan 27 18:14:07 UTC 2023


Hi

We are observing this behavior with Robocopy on Windows 10, where the same
client behaves differently against 2 different versions of Samba -
Samba-4.4.4(Centos)
v/s Samba-4.9.5-Debian
We have set the max protocol to SMB2.

It sets FILE_OPEN for 4.4.4 and FILE_OPEN_IF with 4.9.5 for the directory
Our VFS module performs its own ACL checks which is misbehaving with the
FILE_OPEN_IF flag

While we are trying to fix our ACL checks to handle this, I am trying to
understand why would a client want to change that flag

The SMB2 spec says that the application decides the CreateDisposition flag.
Since the client is same in both cases, is there something in the initial
responses by the server that would cause this ?

Thanks
Mittal


More information about the samba-technical mailing list