From: Volker Lendecke Date: Thu, 28 May 2020 16:56:22 +0000 (+0200) Subject: torture3: Use cli_qfileinfo_basic() in run_posix_append() X-Git-Tag: ldb-2.2.0~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc7fc08f17388cd731e3fc25510a0fead7ca589f;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison --- diff --git a/source3/torture/test_posix_append.c b/source3/torture/test_posix_append.c index 9f892e3305e..3abd448ab7b 100644 --- a/source3/torture/test_posix_append.c +++ b/source3/torture/test_posix_append.c @@ -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; }