]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb correctly set isFsctl for snapshot list
authorChristian Ambach <ambi@samba.org>
Thu, 30 Aug 2012 14:43:33 +0000 (16:43 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 10 Sep 2012 08:52:55 +0000 (10:52 +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 64e49840e0d829bd5932dcfa3eb728f88026187a..6763d6931519c68e7b06e91f8f5430ad02eea396 100644 (file)
@@ -5256,7 +5256,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(