git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cdf10e6
)
If we're not allowing streams on this conn ptr,
author
Jeremy Allison
<jra@samba.org>
Fri, 25 Jul 2008 01:13:20 +0000
(18:13 -0700)
committer
Jeremy Allison
<jra@samba.org>
Fri, 25 Jul 2008 01:13:20 +0000
(18:13 -0700)
then don't allow create_file() to call down to
create_file_unixpath() with a stream name.
Jeremy.
source/smbd/open.c
patch
|
blob
|
history
diff --git
a/source/smbd/open.c
b/source/smbd/open.c
index 0d1dd31cd60fc7f3659a93c44b4e31137ccda3fd..2184e69d3745c936c4b683bc9116ccf41493d9b6 100644
(file)
--- a/
source/smbd/open.c
+++ b/
source/smbd/open.c
@@
-3052,6
+3052,11
@@
NTSTATUS create_file(connection_struct *conn,
ZERO_STRUCT(sbuf);
goto done;
}
ZERO_STRUCT(sbuf);
goto done;
}
+
+ if (!(conn->fs_capabilities & FILE_NAMED_STREAMS)) {
+ status = NT_STATUS_OBJECT_PATH_NOT_FOUND;
+ goto fail;
+ }
}
if ((req != NULL) && (req->flags2 & FLAGS2_DFS_PATHNAMES)) {
}
if ((req != NULL) && (req->flags2 & FLAGS2_DFS_PATHNAMES)) {