summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index c0bb042d28..77af939f37 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2285,7 +2285,7 @@ bool parent_dirname(TALLOC_CTX *mem_ctx, const char *dir, char **parent,
return False;
}
if (name) {
- *name = "";
+ *name = dir;
}
return True;
}