diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-08-19 09:58:38 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-08-27 16:45:41 +0200 |
commit | 2a3270beec2800e0a5dcb69af111d053abaa9245 (patch) | |
tree | 1a6b805522ffd58586f1147dbb08f61df920fe30 /source3 | |
parent | 5234d10c8e8c9d0d2576133c209ba474e1867d28 (diff) | |
download | samba-2a3270beec2800e0a5dcb69af111d053abaa9245.tar.gz samba-2a3270beec2800e0a5dcb69af111d053abaa9245.tar.bz2 samba-2a3270beec2800e0a5dcb69af111d053abaa9245.zip |
s3:smbd: teach filename_convert() about fake files (2nd fix for bug #6642)
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/filename.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 1e2ebcf307..2538bc1ea6 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. |