]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture3: cli_query_security_descriptor() does smb2 as well
authorVolker Lendecke <vl@samba.org>
Mon, 9 Nov 2020 20:40:28 +0000 (21:40 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 16 Nov 2020 19:53:44 +0000 (19:53 +0000)
Remove a direct caller

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/torture/test_smb2.c

index fbb1edfbe8885123846fbf66e191e4a110bda57e..56d8c656ff3c0be178fc79211774d4a57d2f7ad1 100644 (file)
@@ -2819,11 +2819,8 @@ bool run_smb2_sacl(int dummy)
         }
 
        /* Try and read the SACL - should succeed. */
-       status = cli_smb2_query_security_descriptor(cli,
-                               fnum,
-                               SECINFO_SACL,
-                               talloc_tos(),
-                               &sd_sacl);
+       status = cli_query_security_descriptor(
+               cli, fnum, SECINFO_SACL, talloc_tos(), &sd_sacl);
 
         if (!NT_STATUS_IS_OK(status)) {
                printf("Read SACL from file %s failed (%s)\n",
@@ -2838,11 +2835,8 @@ bool run_smb2_sacl(int dummy)
         * Try and read the DACL - should fail as we have
         * no READ_DAC access.
         */
-       status = cli_smb2_query_security_descriptor(cli,
-                               fnum,
-                               SECINFO_DACL,
-                               talloc_tos(),
-                               &sd_sacl);
+       status = cli_query_security_descriptor(
+               cli, fnum, SECINFO_DACL, talloc_tos(), &sd_sacl);
 
        if (!NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED)) {
                printf("Reading DACL on file %s got (%s) "