git.samba.org
/
abartlet
/
samba.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r21604: I got this wrong also in libsmb :-(.
[abartlet/samba.git/.git]
/
source3
/
libsmb
/
clifile.c
diff --git
a/source3/libsmb/clifile.c
b/source3/libsmb/clifile.c
index 2ebd960d81f4673163917ac2a151413cad258b3d..a559664fb3ae0311c5f444458d03343028c5b2f2 100644
(file)
--- 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);