s3: Fix shadow copy display on Windows 7
authorVolker Lendecke <vl@samba.org>
Thu, 8 Oct 2009 12:02:39 +0000 (14:02 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 23 Dec 2009 11:07:50 +0000 (12:07 +0100)
Windows 7 is a bit more picky on our NT_STATUS_BUFFER_TOO_SMALL. Announce the
right buffer size, the same amount we later check for.

Fix bug #6850 (Shadow Copy Support for VISTA / Windows 7).
(cherry picked from commit b1243ff12d4f4b948dc7bbd85795f8ee8f7621d9)

source3/smbd/nttrans.c

index 9f30f0631b17b18c0e5d4b67b77531378c16e887..dfe59f0deb2a752b0c0c2155d47a47ca757eecc1 100644 (file)
@@ -1991,7 +1991,7 @@ static void call_nt_transact_ioctl(connection_struct *conn,
                }
 
                /* needed_data_count 4 bytes */
-               SIVAL(pdata,8,labels_data_count);
+               SIVAL(pdata, 8, labels_data_count+4);
 
                cur_pdata+=12;