summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-04-27 22:41:25 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 17:19:11 +0200
commitf24f472d445f67654126fc5de6b680709f2fe843 (patch)
tree0db3adfc7242fa6a8a5538259bd102981bcd103f /source4
parent3b11a53304df29ebe2f2bfdeb5a6f0bf66553013 (diff)
downloadsamba-f24f472d445f67654126fc5de6b680709f2fe843.tar.gz
samba-f24f472d445f67654126fc5de6b680709f2fe843.tar.bz2
samba-f24f472d445f67654126fc5de6b680709f2fe843.zip
Fix error in logic, making recursion work past the first level.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4')
-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);