torture3: Use cli_qfileinfo_basic() in run_posix_append()
authorVolker Lendecke <vl@samba.org>
Thu, 28 May 2020 16:56:22 +0000 (18:56 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 4 Jun 2020 17:11:39 +0000 (17:11 +0000)
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>
source3/torture/test_posix_append.c

index 9f892e3305e375344b323b695e70469e6597247c..3abd448ab7b56e6b02846da466d9e8db6c706d5a 100644 (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;
        }