summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/filename.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index f15c107711..fb8ed07ee8 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -755,7 +755,8 @@ static BOOL scan_directory(connection_struct *conn, const char *path,
name,
&unmangled_name,
conn->params);
- if (mangled) {
+ if (!mangled) {
+ /* Name is now unmangled. */
name = unmangled_name;
}
}