Bug 5479 - smbclient fails to put files on Vista
Summary: smbclient fails to put files on Vista
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Client tools (show other bugs)
Version: 3.2.0
Hardware: All Linux
: P3 regression
Target Milestone: ---
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL: https://bugzilla.redhat.com/show_bug....
Depends on:
Reported: 2008-05-21 11:59 UTC by Simo Sorce
Modified: 2008-05-21 20:01 UTC (History)
1 user (show)

See Also:

/usr/share/cups/data/testprint.ps file from f9 (16.96 KB, application/octet-stream)
2008-05-21 13:02 UTC, Guenther Deschner
no flags Details
Patch (756 bytes, patch)
2008-05-21 13:47 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simo Sorce 2008-05-21 11:59:53 UTC
This bug here: https://bugzilla.redhat.com/show_bug.cgi?id=439154 turned out to be a bug in smbclient when trying to put files bigger than trivial sizes on a vista client.

Guenther also confirms v3-0-stable has this issue against vista.

The error returned is Error writing file: ERRSRV - ERRerror (Non-specific error code.)

Traces are available in the redhat bugzilla too.
Comment 1 Guenther Deschner 2008-05-21 12:06:17 UTC
Simo, I guess you mean 3-2-stable :) This is where I can perfectly reproduce it as well.
Comment 2 Simo Sorce 2008-05-21 12:08:06 UTC
sorry, yes that was a stupid typo
Comment 3 Jeremy Allison 2008-05-21 12:45:21 UTC
Ok, I just attached to a Vista share with smbclient and "put" a 1881141248 byte sized file successfully. How are you reproducing this ? I need much more info.
Comment 4 Guenther Deschner 2008-05-21 13:02:11 UTC
Created attachment 3301 [details]
/usr/share/cups/data/testprint.ps file from f9

Ok, Jeremy I can only upload this attached file to a vista share using 3-2-stable smbclient when changing the writesize to the default (small) writesize of 4k which is defined in ./libsmb/clireadwrite.c:697

Can you reproduce that? If not, I'm happy to provide much more info.
Comment 5 Jeremy Allison 2008-05-21 13:47:52 UTC
Created attachment 3302 [details]

This fixes it for me. Now, do the same restrictions apply to IPC$ on Vista too ?
Comment 6 Jeremy Allison 2008-05-21 20:01:54 UTC
Closing, fixed in git source trees.