smbclient, cmdline, recurse
Ezequiel HP
zac at SLAC.Stanford.EDU
Sat Feb 17 01:39:30 GMT 2001
Hello People,
I have patched samba-2.0.7/source/client/client.c
to add a command line "-r" to inhibit the recursing
of directory listings.
The patch below maintains the original behaviour by default
so the "-r" flag, if given, will inhibit the recurse feature
on directory listings.
I think it should be inhibited by default, it makes it
much easier to browse and get the directories you want.
Cheers,
Zac
% diff client.c client_new.c
83a84
> static BOOL recurse_cmd_dir = True;
600c601,603
< do_list(mask, attribute, display_finfo, recurse, True);
---
> /* replaced `recurse' by `recurse_cmd_dir' to inhibit recurse in dir listings */
> do_list(mask, attribute, display_finfo, recurse_cmd_dir, True);
>
2333c2336
< getopt(argc,
argv,"s:O:R:M:i:Nn:d:Pp:l:hI:EU:L:t:m:W:T:D:c:b:")) != EOF) {
---
> getopt(argc, argv,"s:O:Rr:M:i:Nn:d:Pp:l:hI:EU:L:t:m:W:T:D:c:b:")) != EOF) {
2342a2346,2348
> break;
> case 'r':
> recurse_cmd_dir = False;
More information about the samba-technical
mailing list