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:
fd588ae
)
s3:smbd: only try and fallback to open a directory if it's not a stream open
author
Stefan Metzmacher
<metze@samba.org>
Wed, 26 Nov 2008 13:04:08 +0000
(14:04 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 26 Nov 2008 22:02:23 +0000
(23:02 +0100)
metze
source/smbd/open.c
patch
|
blob
|
history
diff --git
a/source/smbd/open.c
b/source/smbd/open.c
index b20927cd82100198b3408c85ece3b8bc80a67a67..c4b244fdb07d36ffe8eecda5738e5c78a7d2ae22 100644
(file)
--- a/
source/smbd/open.c
+++ b/
source/smbd/open.c
@@
-2826,6
+2826,13
@@
NTSTATUS create_file_unixpath(connection_struct *conn,
if (NT_STATUS_EQUAL(status, NT_STATUS_FILE_IS_A_DIRECTORY)) {
+ /* A stream open never opens a directory */
+
+ if (base_fsp) {
+ status = NT_STATUS_FILE_IS_A_DIRECTORY;
+ goto fail;
+ }
+
/*
* Fail the open if it was explicitly a non-directory
* file.