bug in smbclient

Sergey Ivanov ivanov_s at kaspersky.com
Fri May 31 09:16:08 GMT 2002


There are a couple of problems with smbclient connected with the socket timeout in 
the select operation.
The default value of the timeout in smblib is about 20 seconds. 
Smbclient does not override this value.
So, when a file is big enought, the checking procedure by antivirus can 
be more that 20 seconds, so samba does not send to smbclient anything 
and a timeout happens.
In this case smbclient is coredumped. This feature is in all the 
versions of Samba.
I think that an additional option where a user could set a timeout he 
wanted would be well.
I attached a patch, that solve this problem(problem with coredump and an 
additional option).

 With Best Regards,
 Sergey Ivanov
 Software Engineer /Kaspersky Lab.Ltd,
 10, Geroyev Panfilovtsev Str., 125363, Moscow, Russia
 Tel.: +7 095 797-8700; Fax: +7 095 948-4331;
 http://www.kaspersky.com; http://www.viruslist.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-2.2.4-client.patch.gz
Type: application/octet-stream
Size: 934 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20020531/28dc7b88/samba-2.2.4-client.patch.obj

More information about the samba-technical mailing list