s3:libsmb correctly set isFsctl for snapshot list
authorChristian Ambach <ambi@samba.org>
Thu, 30 Aug 2012 14:43:33 +0000 (16:43 +0200)
committerChristian Ambach <ambi@samba.org>
Thu, 30 Aug 2012 16:57:24 +0000 (18:57 +0200)
FSCTL_GET_SHADOW_COPY_DATA is a FSCTL, so set the isFsctl marker
otherwise smbclient allinfo will not report snapshots any more with the changes
made for Bug #8311

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Thu Aug 30 18:57:24 CEST 2012 on sn-devel-104

source3/libsmb/clifile.c

index 1ee7fff8b592377e56c4ef7fd063175d6ca9b6a0..ca9b867d79d612acbb2eac914371d78e3b6403bc 100644 (file)
@@ -5490,7 +5490,7 @@ struct tevent_req *cli_shadow_copy_data_send(TALLOC_CTX *mem_ctx,
 
        SIVAL(state->setup + 0, 0, FSCTL_GET_SHADOW_COPY_DATA);
        SSVAL(state->setup + 2, 0, fnum);
-       SCVAL(state->setup + 3, 0, 0); /* isFsctl */
+       SCVAL(state->setup + 3, 0, 1); /* isFsctl */
        SCVAL(state->setup + 3, 1, 0); /* compfilter, isFlags (WSSP) */
 
        subreq = cli_trans_send(