From a14efbadd53ac9678d75e6029f947d63cfa0c4e5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 30 Jun 2009 16:03:11 +0200 Subject: [PATCH] s3:util: let parent_dirname() correctly return toplevel filenames metze (cherry picked from commit a14efbadd53ac9678d75e6029f947d63cfa0c4e5) Signed-off-by: Stefan Metzmacher --- source3/lib/util.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/lib/util.c b/source3/lib/util.c index c0bb042..77af939 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; } -- 1.5.4.3