git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If we're not allowing streams on this conn ptr,
[samba.git]
/
source
/
smbd
/
open.c
diff --git
a/source/smbd/open.c
b/source/smbd/open.c
index 7a13b3ae381a989853299bbc4f2a9c0f3b08cb16..2184e69d3745c936c4b683bc9116ccf41493d9b6 100644
(file)
--- a/
source/smbd/open.c
+++ b/
source/smbd/open.c
@@
-81,7
+81,7
@@
NTSTATUS fd_close(files_struct *fsp)
return NT_STATUS_OK; /* Shared handle. Only close last reference. */
}
return NT_STATUS_OK; /* Shared handle. Only close last reference. */
}
- ret = SMB_VFS_CLOSE(fsp
, fsp->fh->fd
);
+ ret = SMB_VFS_CLOSE(fsp);
fsp->fh->fd = -1;
if (ret == -1) {
return map_nt_error_from_unix(errno);
fsp->fh->fd = -1;
if (ret == -1) {
return map_nt_error_from_unix(errno);
@@
-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)) {