1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3: smbd: Always use metadata_fsp() when processing fsctls.

Currently all fsctls we implement need the base fsp, not
an alternate data stream fsp. We may revisit this later
if we implement fsctls that operate on an ADS.

Remove knownfail.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15236

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Walker <awalker@ixsystems.com>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Nov 14 18:13:31 UTC 2022 on sn-devel-184
This commit is contained in:
Jeremy Allison 2022-11-10 14:43:15 -08:00
parent abc4495e45
commit fa4eba131b
2 changed files with 7 additions and 2 deletions

View File

@ -1 +0,0 @@
^samba3.smb2.ioctl-on-stream.ioctl-on-stream\(fileserver\)

View File

@ -1487,7 +1487,13 @@ static NTSTATUS vfswrap_fsctl(struct vfs_handle_struct *handle,
char **out_data = (char **)_out_data;
NTSTATUS status;
SMB_ASSERT(!fsp_is_alternate_stream(fsp));
/*
* Currently all fsctls operate on the base
* file if given an alternate data stream.
* Revisit this if we implement fsctls later
* that need access to the ADS handle.
*/
fsp = metadata_fsp(fsp);
switch (function) {
case FSCTL_SET_SPARSE: