smbclient, SMBwrite vs SMBwriteX
jra at samba.org
Wed Oct 29 01:22:49 GMT 2003
On Wed, Oct 29, 2003 at 12:00:06PM +1100, Chris Dunlop wrote:
> On Tue, Oct 28, 2003 at 01:08:36PM -0800, Richard Sharpe wrote:
> > On Tue, 28 Oct 2003, Chris Dunlop wrote:
> > > $ smbclient //konica/print ' ' -c 'print -' < /tmp/tmp.ps
> > > Error writing file: ERRSRV - 22
> > >
> > > Examining the network traffic revealed that the printer returns
> > > the error when smbclient issues an SMBwriteX, and that the
> > > MS-Windows printer driver (which works of course) was using
> > > SMBwrite rather than SMBwriteX.
> > What would be useful would be if you could get us a capture of
> > a session with the printer when a small file is being sent.
> > The support should be in clireadwrite.c and you should not
> > have to add a new switch.
> That sounds like the better solution!
Ok, I took a look at this, it's negotiating dialect number 7,
which is NT LANMAN 1.0 from Samba. This *should* allow SMBwriteX
so it's a printer bug. Maybe we should just add
a fallback in the cliwrite code to use SMBwrite if we get an
error back of ERRsrv, 0x16 (which isn't known be Samba).
More information about the samba-technical