diff options
Diffstat (limited to 'source/libsmb/clifile.c')
-rw-r--r-- | source/libsmb/clifile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/libsmb/clifile.c b/source/libsmb/clifile.c index 6328a1720a6..2fe9eb17259 100644 --- a/source/libsmb/clifile.c +++ b/source/libsmb/clifile.c @@ -330,6 +330,8 @@ static BOOL cli_unix_chmod_chown_internal(struct cli_state *cli, const char *fna p += clistr_push(cli, p, fname, -1, STR_TERMINATE); param_len = PTR_DIFF(p, param); + memset(data, 0xff, 40); /* Set all sizes/times to no change. */ + SIVAL(data,40,uid); SIVAL(data,48,gid); SIVAL(data,84,mode); |