Bug 2732 - smbclient hangs when doing 'ls' on a Win2k server.
Summary: smbclient hangs when doing 'ls' on a Win2k server.
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbclient (show other bugs)
Version: 3.0.14a
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-20 08:04 UTC by Jay Fenlason - please log in and update your mail address here and let us enable Bugmails to you again, Jay
Modified: 2005-08-24 10:23 UTC (History)
0 users

See Also:


Attachments
Patch that prevents hanging, but truncates directory listings (50 bytes, patch)
2005-05-20 08:04 UTC, Jay Fenlason - please log in and update your mail address here and let us enable Bugmails to you again, Jay
no flags Details
ethereal capture of smbclient hanging. (25 bytes, application/octet-stream)
2005-05-20 08:06 UTC, Jay Fenlason - please log in and update your mail address here and let us enable Bugmails to you again, Jay
no flags Details
Patch that prevents hanging but truncates directory listings (721 bytes, patch)
2005-05-20 08:09 UTC, Jay Fenlason - please log in and update your mail address here and let us enable Bugmails to you again, Jay
no flags Details
ethereal capture of smbclient hanging (128.60 KB, application/octet-stream)
2005-05-20 08:10 UTC, Jay Fenlason - please log in and update your mail address here and let us enable Bugmails to you again, Jay
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Fenlason - please log in and update your mail address here and let us enable Bugmails to you again, Jay 2005-05-20 08:04:10 UTC
When I use the command "smbclient //fenlason-laptop/cdrive Administrator -U 
FENLASON-LAPTOP\\Administrator -c ls", it hangs, while spamming my network 
with traffic.  This behavior started with 3.0.13, and is still present in 
3.0.15pre2 patched up to svn 6911 (latest as of yesterday). 
 
Reverting the change to line 210 in libsmb/clilist.c (see attached patch) 
causes it to stop hanging, but directory listings are truncated.
Comment 1 Jay Fenlason - please log in and update your mail address here and let us enable Bugmails to you again, Jay 2005-05-20 08:04:40 UTC
Created attachment 1236 [details]
Patch that prevents hanging, but truncates directory listings
Comment 2 Jay Fenlason - please log in and update your mail address here and let us enable Bugmails to you again, Jay 2005-05-20 08:06:06 UTC
Created attachment 1237 [details]
ethereal capture of smbclient hanging.

The original capture is much much longer, but it appears to be looping.
Comment 3 Jay Fenlason - please log in and update your mail address here and let us enable Bugmails to you again, Jay 2005-05-20 08:09:51 UTC
Created attachment 1238 [details]
Patch that prevents hanging but truncates directory listings

konqueror on RHEL-3 doesn't want to upload patches today.  Let me try a
different browser.
Comment 4 Jay Fenlason - please log in and update your mail address here and let us enable Bugmails to you again, Jay 2005-05-20 08:10:44 UTC
Created attachment 1239 [details]
ethereal capture of smbclient hanging

Maybe mozilla will be able to upload this.
Comment 5 Jeremy Allison 2005-05-26 12:02:06 UTC
This fix is already in SVN so I'm going to close this out. There is a more
general problem with getting directory listings from a FAT drive from W2K but I
think I have a fix for that one.
Jeremy.

Comment 6 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:23:42 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.