summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-02-20 23:19:39 +0000
committerJeremy Allison <jra@samba.org>2004-02-20 23:19:39 +0000
commitef8f8274492c142765a94cc453d3da640c9fef91 (patch)
tree99888169ce55fdbd5564fd66468ed4f297edd371 /source3/torture
parent7d7849b18a625820b1fba05bd17a718c7f98837e (diff)
downloadsamba-ef8f8274492c142765a94cc453d3da640c9fef91.tar.gz
samba-ef8f8274492c142765a94cc453d3da640c9fef91.tar.bz2
samba-ef8f8274492c142765a94cc453d3da640c9fef91.zip
Make SMB_FILE_ACCESS_INFORMATION call work correctly.
Jeremy. (This used to be commit 0ea0ada6c609e1bb0fb4aace24e1beb7197495b5)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index d8bfe53dc3..8c4d994b40 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -2822,12 +2822,15 @@ static BOOL run_deletetest(int dummy)
goto fail;
}
-#if 0
- {
- uint32 accinfo = 0;
- cli_qfileinfo_test(cli1, fnum1, SMB_FILE_ACCESS_INFORMATION, (char *)&accinfo);
- printf("access mode = 0x%lx\n", accinfo);
- }
+#if 0 /* JRATEST */
+ {
+ uint32 *accinfo = NULL;
+ uint32 len;
+ cli_qfileinfo_test(cli1, fnum1, SMB_FILE_ACCESS_INFORMATION, (char **)&accinfo, &len);
+ if (accinfo)
+ printf("access mode = 0x%lx\n", *accinfo);
+ SAFE_FREE(accinfo);
+ }
#endif
if (!cli_close(cli1, fnum1)) {