r21604: I got this wrong also in libsmb :-(.
authorJeremy Allison <jra@samba.org>
Wed, 28 Feb 2007 22:29:14 +0000 (22:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:15 +0000 (12:18 -0500)
Jeremy.
(This used to be commit 4a04555e23b5fa53fbeb5b65a7c83cff1b0f9640)

source3/libsmb/clifile.c

index 2ebd960d81f4673163917ac2a151413cad258b3d..a559664fb3ae0311c5f444458d03343028c5b2f2 100644 (file)
@@ -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);