diff options
-rw-r--r-- | source3/client/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index a132b70584..5bc125ad07 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -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; |