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>
Thu, 26 Nov 2009 10:39:06 +0000 (11:39 +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.
(cherry picked from commit c6c0907950030db90331e5e0ac96a68619fe4a73)

source3/smbd/nttrans.c

index cf955d9651d8585f32938c2daf86b4f88b63581c..0cc05dbd52ef17ebf19c14f1f8506802aad528ea 100644 (file)
@@ -2036,7 +2036,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;