s3: Fix shadow copy display on Windows 7
authorVolker Lendecke <vl@samba.org>
Thu, 8 Oct 2009 12:02:39 +0000 (14:02 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 8 Oct 2009 12:07:07 +0000 (14:07 +0200)
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.

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;