diff options
-rw-r--r-- | source3/smbd/filename.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 1186918a7f2..4d79ea17938 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -1443,6 +1443,11 @@ int get_real_filename(connection_struct *conn, const char *path, int ret; bool mangled; + /* handle null paths */ + if ((path == NULL) || (*path == 0)) { + path = "."; + } + mangled = mangle_is_mangled(name, conn->params); if (mangled) { |