[PATCH] smbclient timeout option
Mark Weaver
mark-clist at npsl.co.uk
Fri Feb 13 08:35:57 MST 2009
Jonathan Galpin wrote:
> Hi Mark
>
> I appreciate your publishing a patch to extend the samba timeout. This will
> solve a backup pc problem for me.
>
> I have applied the patch to the current 3.3.0 release, and it reports mostly
> errors.
>
> I have scoured the internet and have not yet found the information I need to
> fix it, or to hack libsmbclient.
>
> Would you mind giving me a little more direction, or a patched client.c?
>
That's odd, I just tried applying it against a freshly downloaded
tarball from samba.org and it applies with no fuzz:
fagus:~# tar xfz samba-3.3.0.tar.gz
fagus:~# cd samba-3.3.0/source/client
fagus:~/samba-3.3.0/source/client# patch -p0 < ~/client.c.patch
patching file client.c
Does your client.c look like this?
-rw-r--r-- 1 root root 121621 2009-02-13 15:21 client.c
Have you maybe got line ending issues by any chance? (something like
perl -pi -e 's/\r\n/\n/' client.c.patch will fix that).
More information about the samba-technical
mailing list