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, 13 Jan 2010 13:00:59 +0000 (14:00 +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 dc3d1f2f073f135bf48a08163010465ba88b9d37)

source/smbd/nttrans.c

index 0bd37a5d011d9b20a1558e0a4e673467799ba517..c392380b5ec7e39adff73fe2a2c8b991c71dc464 100644 (file)
@@ -1904,7 +1904,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;