mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s3: libsmb: Change cli_unlink() and async version to take a uint32_t attribute.
Fix the callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
98d5efd3fd
commit
2eb1a7f1e7
@ -1868,7 +1868,7 @@ struct tevent_req *cli_unlink_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
struct cli_state *cli,
|
||||
const char *fname,
|
||||
uint16_t mayhave_attrs)
|
||||
uint32_t mayhave_attrs)
|
||||
{
|
||||
struct tevent_req *req = NULL, *subreq = NULL;
|
||||
struct cli_unlink_state *state = NULL;
|
||||
@ -1936,7 +1936,7 @@ NTSTATUS cli_unlink_recv(struct tevent_req *req)
|
||||
return tevent_req_simple_recv_ntstatus(req);
|
||||
}
|
||||
|
||||
NTSTATUS cli_unlink(struct cli_state *cli, const char *fname, uint16_t mayhave_attrs)
|
||||
NTSTATUS cli_unlink(struct cli_state *cli, const char *fname, uint32_t mayhave_attrs)
|
||||
{
|
||||
TALLOC_CTX *frame = NULL;
|
||||
struct tevent_context *ev;
|
||||
|
@ -361,9 +361,9 @@ struct tevent_req *cli_unlink_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
struct cli_state *cli,
|
||||
const char *fname,
|
||||
uint16_t mayhave_attrs);
|
||||
uint32_t mayhave_attrs);
|
||||
NTSTATUS cli_unlink_recv(struct tevent_req *req);
|
||||
NTSTATUS cli_unlink(struct cli_state *cli, const char *fname, uint16_t mayhave_attrs);
|
||||
NTSTATUS cli_unlink(struct cli_state *cli, const char *fname, uint32_t mayhave_attrs);
|
||||
|
||||
struct tevent_req *cli_mkdir_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -1257,7 +1257,7 @@ static PyObject *py_cli_list(struct py_cli_state *self,
|
||||
static NTSTATUS unlink_file(struct py_cli_state *self, const char *filename)
|
||||
{
|
||||
NTSTATUS status;
|
||||
uint16_t attrs = (FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
|
||||
uint32_t attrs = (FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
|
||||
struct tevent_req *req = NULL;
|
||||
|
||||
req = cli_unlink_send(
|
||||
|
Loading…
x
Reference in New Issue
Block a user