mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
Fix error in logic, making recursion work past the first level.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
parent
3b11a53304
commit
f24f472d44
@ -86,7 +86,7 @@ static void gp_list_helper (struct clilist_file_info *info, const char *mask, vo
|
||||
mkdir(full_local_path, 0755);
|
||||
|
||||
/* If the relative path is empty, then avoid the extra backslash */
|
||||
if (state->cur_rel_path[0] != '\0') {
|
||||
if (state->cur_rel_path[0] == '\0') {
|
||||
rel_path = info->name;
|
||||
} else {
|
||||
rel_path = talloc_asprintf(state, "%s\\%s", state->cur_rel_path, info->name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user