From: Christian Ambach Date: Thu, 30 Aug 2012 14:43:33 +0000 (+0200) Subject: s3:libsmb correctly set isFsctl for snapshot list X-Git-Tag: samba-4.0.0beta8~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02aacb17d18f1bb47575b473a9468ff05403e67c;p=thirdparty%2Fsamba.git s3:libsmb correctly set isFsctl for snapshot list 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 Autobuild-Date(master): Thu Aug 30 18:57:24 CEST 2012 on sn-devel-104 --- diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 1ee7fff8b59..ca9b867d79d 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -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(