summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-02-28 22:29:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:15 -0500
commitfd5cf34e26215911664c6218ff7e7577e9aa5cd3 (patch)
treec909a8e15dccdc292bc4782e6807367ff13e9b6b /source3/libsmb
parent62a6f8940dce741037c12404e9f14543a0a62ab0 (diff)
downloadsamba-fd5cf34e26215911664c6218ff7e7577e9aa5cd3.tar.gz
samba-fd5cf34e26215911664c6218ff7e7577e9aa5cd3.tar.bz2
samba-fd5cf34e26215911664c6218ff7e7577e9aa5cd3.zip
r21604: I got this wrong also in libsmb :-(.
Jeremy. (This used to be commit 4a04555e23b5fa53fbeb5b65a7c83cff1b0f9640)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clifile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 2ebd960d81..a559664fb3 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/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);