1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

torture3: Use cli_qfileinfo_basic() in run_posix_append()

Only Samba does the SMB1 posix extensions, and we do the "advanced"
trans-based call.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2020-05-28 18:56:22 +02:00 committed by Jeremy Allison
parent 4d1a84b39e
commit bc7fc08f17

View File

@ -21,6 +21,7 @@
#include "torture/proto.h"
#include "../libcli/security/security.h"
#include "libsmb/libsmb.h"
#include "libsmb/clirap.h"
/*
* Make sure that GENERIC_WRITE does not trigger append. See
@ -80,9 +81,10 @@ bool run_posix_append(int dummy)
goto fail;
}
status = cli_getattrE(cli, fnum, NULL, &size, NULL, NULL, NULL);
status = cli_qfileinfo_basic(
cli, fnum, NULL, &size, NULL, NULL, NULL, NULL, NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("cli_getatrE failed: %s\n", nt_errstr(status));
printf("cli_qfileinfo_basic failed: %s\n", nt_errstr(status));
goto fail;
}