From: Volker Lendecke Date: Mon, 9 Nov 2020 20:40:28 +0000 (+0100) Subject: torture3: cli_query_security_descriptor() does smb2 as well X-Git-Tag: samba-4.14.0rc1~614 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6fef155d07f6eb255a21736cf512abc2dd19224;p=thirdparty%2Fsamba.git torture3: cli_query_security_descriptor() does smb2 as well Remove a direct caller Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c index fbb1edfbe88..56d8c656ff3 100644 --- a/source3/torture/test_smb2.c +++ b/source3/torture/test_smb2.c @@ -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) "