From: Stefan Metzmacher Date: Tue, 30 Jun 2009 14:03:11 +0000 (+0200) Subject: s3:util: let parent_dirname() correctly return toplevel filenames X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92bb02adbc808ed3180ab66b45fb717c9dad03b4;p=thirdparty%2Fsamba.git s3:util: let parent_dirname() correctly return toplevel filenames metze (cherry picked from commit a14efbadd53ac9678d75e6029f947d63cfa0c4e5) Signed-off-by: Stefan Metzmacher This addresses bug #6526. --- diff --git a/source/lib/util.c b/source/lib/util.c index 002c14a66b0..e3a346b06d1 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -2669,7 +2669,7 @@ bool parent_dirname_talloc(TALLOC_CTX *mem_ctx, const char *dir, return False; } if (name) { - *name = ""; + *name = dir; } return True; }