struct smbcli_state *cli)
{
union smb_open io;
- union smb_fileinfo finfo;
const char *fname = BASEDIR "\\torture_ntcreatex.txt";
const char *dname = BASEDIR "\\torture_ntcreatex_dir";
- NTSTATUS status, expected_status;
- bool ret = true;
+ NTSTATUS status;
int i;
- uint32_t access_mask = 0;
struct {
uint32_t open_disp;
__location__, nt_errstr(status),
nt_errstr(open_funcs[i].correct_status),
i, (int)open_funcs[i].open_disp);
- ret = false;
+ return false;
}
/* Close and delete the file. */
if (NT_STATUS_IS_OK(status)) {
"NTCREATEX_OPTIONS_NON_DIRECTORY_FILE should be returned ");
smbcli_close(cli->tree, io.ntcreatex.out.file.fnum);
-done:
- smbcli_close(cli->tree, io.ntcreatex.out.file.fnum);
smbcli_deltree(cli->tree, BASEDIR);
- return ret;
+ return true;
}
/* basic testing of all RAW_OPEN_* calls