can I define "static" interfaces in source/lib/interfaces.c?
Tomasz Chmielewski
mangoo at wpkg.org
Mon Feb 13 14:42:58 GMT 2006
Tomasz Chmielewski wrote:
(...)
>> Then take a look at libsmb/clireadwrite.c
>> In function cli_issue_write the large_writex value becomes True when
>> the error occurs. This shouldn't happen.
>
> The error shouldn't happen? This we know :)
> Or it shouldn't become True, as the error is not really true?
>
> Should I set it to false and try again?
Ha!
# FILE=/usr/share/cups/drivers/ps5ui.dll
# SHARE=shared
# /usr/bin/smbclient //localhost/$SHARE -N -U 'Administrator%pass' -c
"put $FILE testfile"
Domain=[MAGISTA] OS=[Unix] Server=[Samba 3.0.21b]
putting file /usr/share/cups/drivers/ps5ui.dll as \testfile (215.4 kb/s)
(average 215.4 kb/s)
# md5sum /usr/share/cups/drivers/ps5ui.dll
b25733fa35b6ab3521488d30b9a05b51 /usr/share/cups/drivers/ps5ui.dll
# md5sum /home/samba/shared/testfile
b25733fa35b6ab3521488d30b9a05b51 /home/samba/shared/testfile
It seems that it works!
I made your change:
if (sizeof (SMB_BIG_UINT) > 4 && (SMB_BIG_UINT)offset >> 32)
and later changed to False from true:
large_writex = False;
I'm not sure however if both changes are needed.
It was sufficient to copy smbclient later.
I wonder if it made mor egood or more harm though :)
--
Tomasz Chmielewski
http://wpkg.org
More information about the samba-technical
mailing list