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:
parent
4d1a84b39e
commit
bc7fc08f17
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user