Fix the callers. Only sets 16 bits on the wire for this level.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
struct tevent_context *ev,
struct cli_state *cli,
const char *fname,
- uint16_t attr,
+ uint32_t attr,
time_t mtime)
{
struct tevent_req *req = NULL, *subreq = NULL;
NTSTATUS cli_setatr(struct cli_state *cli,
const char *fname,
- uint16_t attr,
+ uint32_t attr,
time_t mtime)
{
TALLOC_CTX *frame = NULL;
char *targetpath = NULL;
struct cli_state *targetcli = NULL;
char *path = NULL;
- uint16_t attr;
+ uint32_t attr;
uint16_t port = 0;
TALLOC_CTX *frame = talloc_stackframe();
NTSTATUS status;
* seems to work on win98.
*/
if (ret && attr != (uint16_t) -1) {
- ret = NT_STATUS_IS_OK(cli_setatr(srv->cli, path, attr, 0));
+ ret = NT_STATUS_IS_OK(cli_setatr(srv->cli, path, (uint32_t)attr, 0));
}
if (! ret) {
struct tevent_context *ev,
struct cli_state *cli,
const char *fname,
- uint16_t attr,
+ uint32_t attr,
time_t mtime);
NTSTATUS cli_setatr_recv(struct tevent_req *req);
NTSTATUS cli_setatr(struct cli_state *cli,
const char *fname,
- uint16_t attr,
+ uint32_t attr,
time_t mtime);
struct tevent_req *cli_chkpath_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,