Fix error in logic, making recursion work past the first level.
authorWilco Baan Hofman <wilco@baanhofman.nl>
Tue, 27 Apr 2010 20:41:25 +0000 (22:41 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 20 Jun 2010 15:19:11 +0000 (17:19 +0200)
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
source4/lib/policy/gp_filesys.c

index bb42fa2984575e4b53174fbcc08bdc73c7dfa29c..deee3c517afb74aa980f9ff92c5bdaf200981cdb 100644 (file)
@@ -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);