Red Hat Bugzilla – Bug 445782
smbclient "put" always creates zero byte sized files at destination
Last modified: 2013-01-09 23:41:37 EST
Please refer to the upstream bug at:
Below is a copy of what I wrote in the upstream bug:
Fedora 9 (preview)
package version samba-client-3.2.0-1.pre3.9.fc9.i386
Windows XP SP3, Intel Laptop, 32 bit
smbclient '//192.168.2.51/moz' -U kaie
"hello" is a file of size "6 bytes", containing "hello".
smb: \> put hello
putting file hello as \hello (0,0 kb/s) (average 0,0 kb/s)
and the destination gets a zero bytes file
get the correct file at the destination
I tested with different files, always zero bytes.
Same server, same client commands, same input file, but using a Fedora 8 client
(version 3.0.28a) it works fine!
It's independent of the input file, I always get zero bytes.
I did a network trace with wireshark (thanks to Andrew Bartlet for helping), he
looked at it, and he concluded, it's a good trace for sending a zero byte file.
I did an strace, I see smbclient does a state64, it gets the expected file size
(6 bytes), it successfully opens that file, but never reads from it! It does
something other actions, but then closes the file.
Thanks to Simo Sorce who reproduced this bug with latest samba code.
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
After application of patch from samba bug 5452
this bug seems to disapear.
I tried to apply the patch to the sources used in Fedora 9, but when I compiled,
I ran into a compiler error. I gave up, assuming that Gunther or Simo would soon
work on an updated rpm anyway, so I didn't want to duplicate the work.
I see on koji that Gunther has already built new packages where the changelog
mentions the inclusion of the fix, but I guess those have not yet been pushed
out as an update.
*** Bug 446852 has been marked as a duplicate of this bug. ***
samba-3.2.0-1.pre3.11.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update samba'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-4120