diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-10 14:01:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:10:00 -0500 |
commit | 5468516f9af10cb3c67bc93c610c22b5383e20db (patch) | |
tree | cc2b84121234dd1e9ead2ae6839eb20213515f7f /source4/ntvfs | |
parent | fabc6ae74ded03faac1ed23d79a61e205cd78daa (diff) | |
download | samba-5468516f9af10cb3c67bc93c610c22b5383e20db.tar.gz samba-5468516f9af10cb3c67bc93c610c22b5383e20db.tar.bz2 samba-5468516f9af10cb3c67bc93c610c22b5383e20db.zip |
r16918: the SMB2 Ioctls are sometimes called with a wildcard handle
the operation doesn't need a valid file handle in that case
metze
(This used to be commit d41a83d55945b07020349339888f3a34ac4eff4e)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/ipc/vfs_ipc.c | 3 | ||||
-rw-r--r-- | source4/ntvfs/posix/pvfs_ioctl.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/ntvfs/ipc/vfs_ipc.c b/source4/ntvfs/ipc/vfs_ipc.c index a0104cae4d..cc8b4af285 100644 --- a/source4/ntvfs/ipc/vfs_ipc.c +++ b/source4/ntvfs/ipc/vfs_ipc.c @@ -843,6 +843,9 @@ static NTSTATUS ipc_ioctl(struct ntvfs_module_context *ntvfs, case RAW_IOCTL_SMB2: return ipc_ioctl_smb2(ntvfs, req, io); + case RAW_IOCTL_SMB2_NO_HANDLE: + return NT_STATUS_FS_DRIVER_REQUIRED; + default: return NT_STATUS_ACCESS_DENIED; } diff --git a/source4/ntvfs/posix/pvfs_ioctl.c b/source4/ntvfs/posix/pvfs_ioctl.c index 513f03c8ec..8ba662d3e7 100644 --- a/source4/ntvfs/posix/pvfs_ioctl.c +++ b/source4/ntvfs/posix/pvfs_ioctl.c @@ -73,6 +73,7 @@ NTSTATUS pvfs_ioctl(struct ntvfs_module_context *ntvfs, return pvfs_ntioctl(ntvfs, req, io); case RAW_IOCTL_SMB2: + case RAW_IOCTL_SMB2_NO_HANDLE: return NT_STATUS_FS_DRIVER_REQUIRED; } |