summaryrefslogtreecommitdiffstats
path: root/source/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
commit4a04555e23b5fa53fbeb5b65a7c83cff1b0f9640 (patch)
tree81f357237a19af6f2988cd00a2c58debb31ffb9d /source/libsmb
parent29761173ee26b4713c9a12166a935c066fc3321b (diff)
downloadsamba-4a04555e23b5fa53fbeb5b65a7c83cff1b0f9640.tar.gz
samba-4a04555e23b5fa53fbeb5b65a7c83cff1b0f9640.tar.xz
samba-4a04555e23b5fa53fbeb5b65a7c83cff1b0f9640.zip
r21604: I got this wrong also in libsmb :-(.
Jeremy.
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/clifile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/libsmb/clifile.c b/source/libsmb/clifile.c
index 2ebd960d81f..a559664fb3a 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);