Bug 10222 - smbclient: showacls command leaves open files
Summary: smbclient: showacls command leaves open files
Status: NEW
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: Client Tools (show other bugs)
Version: 3.6.18
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
Depends on:
Reported: 2013-10-23 13:25 UTC by d.y.kazarov
Modified: 2013-10-23 13:25 UTC (History)
0 users

See Also:

Patch solving problem (1.92 KB, application/octet-stream)
2013-10-23 13:25 UTC, d.y.kazarov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description d.y.kazarov 2013-10-23 13:25:51 UTC
Created attachment 9316 [details]
Patch solving problem

At source3/client/client.c file calls to cli_ntcreate are not followed by cli_close and some commands leave opened files.
For example
smbclient '\\srv\resource' -c 'showacls; recurse; ls' 
after listing 65k files issues erors like
display_finfo() Failed to open \filename: NT_STATUS_TOO_MANY_OPENED_FILES

Also I've added showaclscwd command to display changing current working directory while recursing with showacls on.