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

torture3: cli_query_security_descriptor() does smb2 as well

Remove a direct caller

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2020-11-09 21:40:28 +01:00 committed by Jeremy Allison
parent 2562890724
commit c6fef155d0

View 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) "