summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/policy/gp_filesys.c2
1 files changed, 1 insertions, 1 deletions
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);