From f6a1f46b5e6e5daddcaf57ca8d9a96580c3676fe Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 3 Jul 2009 13:28:01 +0200 Subject: s3: Align nttrans replies the same way Windows does it 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 Autobuild-User: Volker Lendecke Autobuild-Date: Wed Nov 3 17:04:28 UTC 2010 on sn-devel-104 --- source3/smbd/nttrans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index caba21161c..855a49b2d5 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -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; -- cgit