[PATCHES] smbclient - add support for superseding the destination file on rename
Uri Simchoni
uri at samba.org
Wed Mar 22 08:40:52 UTC 2017
On 03/22/2017 10:30 AM, Christian Ambach wrote:
> Hi Uri,
>
>> This smbclient patch set supports asking the server to replace an
>> existing destination file when renaming. This is a feature of SMB2
>> protocol only - haven't found a parallel in SMB1.
>
> According to [MS-FSCC], there is a "2.4.34.1 FileRenameInformation for
> SMB" that also contains a ReplaceIfExists flag. Or did you observe that
> servers ignore the flag when given? The SMB1 path in smbd seems to
> ignore it, see the hardcoded False value in reply.c:7391
>
> Regards,
> Christian
>
I haven't spotted renaming via TRANS2_SET_FILE_INFORMATION and
pass-through infolevels - I'll test it with Windows and see how it
works. This SMB1 protocol is certainly a mess...
Thanks!
Uri.
More information about the samba-technical
mailing list