mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Fix for bug 222 from Marcin Owsiany.
Don't get stuck in an infinite loop listing directories recursively
if the server returns an empty directory name. This can happen with
incorrect i18n configuration on a Samba server.
(This used to be commit f93a2831f1
)
This commit is contained in:
parent
bcd659f26a
commit
7f7b754483
@ -481,6 +481,11 @@ static void do_list_helper(file_info *f, const char *mask, void *state)
|
||||
pstring mask2;
|
||||
char *p;
|
||||
|
||||
if (!f->name[0]) {
|
||||
d_printf("Empty dir name returned. Possible server misconfiguration.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
pstrcpy(mask2, mask);
|
||||
p = strrchr_m(mask2,'\\');
|
||||
if (!p) return;
|
||||
|
Loading…
Reference in New Issue
Block a user