From f24f472d445f67654126fc5de6b680709f2fe843 Mon Sep 17 00:00:00 2001 From: Wilco Baan Hofman Date: Tue, 27 Apr 2010 22:41:25 +0200 Subject: Fix error in logic, making recursion work past the first level. Signed-off-by: Jelmer Vernooij --- source4/lib/policy/gp_filesys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/policy/gp_filesys.c') diff --git a/source4/lib/policy/gp_filesys.c b/source4/lib/policy/gp_filesys.c index bb42fa2984..deee3c517a 100644 --- a/source4/lib/policy/gp_filesys.c +++ b/source4/lib/policy/gp_filesys.c @@ -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); -- cgit