summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-19 14:10:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:08 -0500
commit6dbd4ac331e4b4f5d87892cba1706244c2b55c0f (patch)
tree5c0192000da17236077240a3ad8d9b95c3fdb1e0 /source4
parent5445415b824e983738b41d0f7e42482faa467b40 (diff)
downloadsamba-6dbd4ac331e4b4f5d87892cba1706244c2b55c0f.tar.gz
samba-6dbd4ac331e4b4f5d87892cba1706244c2b55c0f.tar.bz2
samba-6dbd4ac331e4b4f5d87892cba1706244c2b55c0f.zip
r15713: - initialize ntioctl.in.max_data and ntioctl.in.blob
- use define instead of hex value metze (This used to be commit 6725cbf9e221e29cbe15dbcc62eecd8749655973)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/torture_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/torture_util.c b/source4/torture/torture_util.c
index 805249b6fd..647f0ec73f 100644
--- a/source4/torture/torture_util.c
+++ b/source4/torture/torture_util.c
@@ -22,6 +22,7 @@
#include "smb.h"
#include "lib/cmdline/popt_common.h"
#include "libcli/raw/libcliraw.h"
+#include "libcli/raw/ioctl.h"
#include "libcli/libcli.h"
#include "system/shmem.h"
#include "system/time.h"
@@ -385,10 +386,12 @@ NTSTATUS torture_set_sparse(struct smbcli_tree *tree, int fnum)
}
nt.ntioctl.level = RAW_IOCTL_NTIOCTL;
- nt.ntioctl.in.function = 0x900c4;
+ nt.ntioctl.in.function = FSCTL_SET_SPARSE;
nt.ntioctl.in.file.fnum = fnum;
nt.ntioctl.in.fsctl = True;
nt.ntioctl.in.filter = 0;
+ nt.ntioctl.in.max_data = 0;
+ nt.ntioctl.in.blob = data_blob(NULL, 0);
status = smb_raw_ioctl(tree, mem_ctx, &nt);