git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8264181
)
s3:smbd: teach filename_convert() about fake files (2nd fix for bug #6642)
master3-quota
author
Stefan Metzmacher
<metze@samba.org>
Wed, 19 Aug 2009 07:58:38 +0000
(09:58 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 19 Aug 2009 20:12:45 +0000
(22:12 +0200)
metze
source3/smbd/filename.c
patch
|
blob
|
history
diff --git
a/source3/smbd/filename.c
b/source3/smbd/filename.c
index 1e2ebcf30755a9a8862534a52bbbefa20ff45446..2538bc1ea63c32ec529391bf437cbb5a2e15e0e7 100644
(file)
--- 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.