}
status = cli_ntcreate_recv(req, &fnum, NULL);
TALLOC_FREE(req);
- PyErr_NTSTATUS_IS_ERR_RAISE(status);
+ PyErr_NTSTATUS_NOT_OK_RAISE(status);
/* write the new file contents */
state.data = data;
}
status = cli_push_recv(req);
TALLOC_FREE(req);
- PyErr_NTSTATUS_IS_ERR_RAISE(status);
+ PyErr_NTSTATUS_NOT_OK_RAISE(status);
/* close the file handle */
req = cli_close_send(NULL, self->ev, self->cli, fnum);
return NULL;
}
status = cli_close_recv(req);
- PyErr_NTSTATUS_IS_ERR_RAISE(status);
+ PyErr_NTSTATUS_NOT_OK_RAISE(status);
Py_RETURN_NONE;
}
}
status = cli_ntcreate_recv(req, &fnum, NULL);
TALLOC_FREE(req);
- PyErr_NTSTATUS_IS_ERR_RAISE(status);
+ PyErr_NTSTATUS_NOT_OK_RAISE(status);
/* get a buffer to hold the file contents */
status = py_smb_filesize(self, fnum, &size);
- PyErr_NTSTATUS_IS_ERR_RAISE(status);
+ PyErr_NTSTATUS_NOT_OK_RAISE(status);
result = PyBytes_FromStringAndSize(NULL, size);
if (result == NULL) {
}
status = cli_rmdir_recv(req);
TALLOC_FREE(req);
- PyErr_NTSTATUS_IS_ERR_RAISE(status);
+ PyErr_NTSTATUS_NOT_OK_RAISE(status);
Py_RETURN_NONE;
}
}
status = cli_mkdir_recv(req);
TALLOC_FREE(req);
- PyErr_NTSTATUS_IS_ERR_RAISE(status);
+ PyErr_NTSTATUS_NOT_OK_RAISE(status);
Py_RETURN_NONE;
}
return false;
}
status = cli_query_security_descriptor_recv(req, NULL, &sd);
- PyErr_NTSTATUS_IS_ERR_RAISE(status);
+ PyErr_NTSTATUS_NOT_OK_RAISE(status);
return py_return_ndr_struct(
"samba.dcerpc.security", "descriptor", sd, sd);
}
status = cli_set_security_descriptor_recv(req);
- PyErr_NTSTATUS_IS_ERR_RAISE(status);
+ PyErr_NTSTATUS_NOT_OK_RAISE(status);
Py_RETURN_NONE;
}