Bug 10222 - smbclient: showacls command leaves open files
smbclient: showacls command leaves open files
Status: NEW
Product: Samba 3.6
Classification: Unclassified
Component: Client Tools
3.6.18
All All
: P5 normal
: ---
Assigned To: Volker Lendecke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-23 13:25 UTC by d.y.kazarov
Modified: 2013-10-23 13:25 UTC (History)
0 users

See Also:


Attachments
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.