From 288b203a71b9bab60bc1ce42718e228e543531e0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 19 Aug 2009 09:58:38 +0200 Subject: [PATCH] s3:smbd: teach filename_convert() about fake files (2nd fix for bug #6642) metze --- source3/smbd/filename.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 1e2ebcf30755..2538bc1ea63c 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -1073,6 +1073,17 @@ NTSTATUS filename_convert(TALLOC_CTX *ctx, return status; } + if (is_fake_file_path(name_in)) { + SMB_STRUCT_STAT st; + ZERO_STRUCT(st); + st.st_ex_nlink = 1; + status = create_synthetic_smb_fname_split(ctx, + name_in, + &st, + pp_smb_fname); + return status; + } + /* * If the caller conditionally allows wildcard lookups, only add the * always allow if the path actually does contain a wildcard. -- 2.34.1