[Pkg-samba-maint] Bug#949394: libsmbclient: smbclient and others cannot rename remote files
Gilles Grandou
gilles at grandou.net
Mon Jan 20 16:47:00 GMT 2020
Additional information:
* the Samba server is a Synology NAS which supports SMB1, SMB2 and SMB3.
* by default it looks like smbclient is using SMB2, according to
previous logs
* when restricting Samba server to only use SMB1, rename is working
correctly:
smb: \> ls
dos_clean_name [\*]
unix_clean_name [\*]
num_setup=1, max_setup=0, param_total=32, this_param=32, max_param=2,
data_total=0, this_data=0, max_data=65535, param_offset=68, param_pad=0,
param_disp=0, data_offset=100, data_pad=0, data_disp=0
num_setup=1, max_setup=0, param_total=40, this_param=40, max_param=10,
data_total=0, this_data=0, max_data=65535, param_offset=68, param_pad=0,
param_disp=0, data_offset=108, data_pad=0, data_disp=0
. DA 0 Mon Jan 20 17:34:21 2020
.. DA 0 Mon Jan 20 02:06:07 2020
1.txt A 6 Mon Jan 20 17:17:55 2020
num_setup=1, max_setup=0, param_total=32, this_param=32, max_param=2,
data_total=0, this_data=0, max_data=65535, param_offset=68, param_pad=0,
param_disp=0, data_offset=100, data_pad=0, data_disp=0
num_setup=1, max_setup=0, param_total=2, this_param=2, max_param=0,
data_total=0, this_data=0, max_data=560, param_offset=68, param_pad=0,
param_disp=0, data_offset=72, data_pad=2, data_disp=0
3746086260 blocks of size 1024. 1372809860 blocks available
Total bytes listed: 6
smb: \> rename 1.txt 2.txt
dos_clean_name [\1.txt]
unix_clean_name [\1.txt]
dos_clean_name [\2.txt]
unix_clean_name [\2.txt]
num_setup=1, max_setup=0, param_total=42, this_param=42, max_param=2,
data_total=0, this_data=0, max_data=65535, param_offset=68, param_pad=0,
param_disp=0, data_offset=112, data_pad=2, data_disp=0
num_setup=1, max_setup=0, param_total=42, this_param=42, max_param=2,
data_total=0, this_data=0, max_data=65535, param_offset=68, param_pad=0,
param_disp=0, data_offset=112, data_pad=2, data_disp=0
smb: \> ls
dos_clean_name [\*]
unix_clean_name [\*]
num_setup=1, max_setup=0, param_total=32, this_param=32, max_param=2,
data_total=0, this_data=0, max_data=65535, param_offset=68, param_pad=0,
param_disp=0, data_offset=100, data_pad=0, data_disp=0
num_setup=1, max_setup=0, param_total=40, this_param=40, max_param=10,
data_total=0, this_data=0, max_data=65535, param_offset=68, param_pad=0,
param_disp=0, data_offset=108, data_pad=0, data_disp=0
. DA 0 Mon Jan 20 17:44:32 2020
.. DA 0 Mon Jan 20 02:06:07 2020
2.txt A 6 Mon Jan 20 17:17:55 2020
num_setup=1, max_setup=0, param_total=32, this_param=32, max_param=2,
data_total=0, this_data=0, max_data=65535, param_offset=68, param_pad=0,
param_disp=0, data_offset=100, data_pad=0, data_disp=0
num_setup=1, max_setup=0, param_total=2, this_param=2, max_param=0,
data_total=0, this_data=0, max_data=560, param_offset=68, param_pad=0,
param_disp=0, data_offset=72, data_pad=2, data_disp=0
3746086260 blocks of size 1024. 1372809924 blocks available
Total bytes listed: 6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20200120/b0707c53/attachment-0001.html>
More information about the Pkg-samba-maint
mailing list