s3: Align nttrans replies the same way Windows does it
authorVolker Lendecke <vl@samba.org>
Fri, 3 Jul 2009 11:28:01 +0000 (13:28 +0200)
committerVolker Lendecke <vlendec@samba.org>
Wed, 3 Nov 2010 17:04:28 +0000 (17:04 +0000)
If you look at traces of "smbcacls" reading a secdesc from Samba and from W2k3
shows this difference in the querysecdesc nttrans reply. This patch is
necessary to enable viewing previous versions via the shadow copy modules from
Windows 2008. The other client versions seem not to care, but W2k8 does.

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Nov  3 17:04:28 UTC 2010 on sn-devel-104

source3/smbd/nttrans.c

index caba21161c13ce299549e95689e65fe3b16bf2b6..855a49b2d5feeef8f524d42d009846ddbbb221a4 100644 (file)
@@ -58,7 +58,7 @@ void send_nt_replies(connection_struct *conn,
        char *pp = params;
        char *pd = pdata;
        int params_sent_thistime, data_sent_thistime, total_sent_thistime;
-       int alignment_offset = 3;
+       int alignment_offset = 1;
        int data_alignment_offset = 0;
        struct smbd_server_connection *sconn = req->sconn;
        int max_send = sconn->smb1.sessions.max_send;