s4: Patch for fixing LDB integer save operations on big-endian platforms

Andrew Bartlett abartlet at samba.org
Fri Oct 15 04:22:30 MDT 2010


On Fri, 2010-10-15 at 09:12 +0200, Matthias Dieter Wallnöfer wrote:
> Dear s4 developers,
> 
> since ekacnet pointed out that one of my latest patches broke the 
> big-endian platforms, I've done some investigations in our current 
> source code and found much more problematic integer save operations (not 
> only mine). I've created the following patch: 
> http://gitweb.samba.org/samba.git/?p=mdw/samba.git;a=commitdiff;h=e3eac107789c2966937646243bacd02c46d35e60
> 
> Basically all informations are described there. Probably it would be 
> very nice if someone could test it on a big-endian platform since I 
> don't have one and to able to see if it really works (full "make test").

The issue is the size of long integers, not the endianness. 

In our LDAP server, we only have 32 bit signed integers, and we need to
cast integers to that first (to get the negative values), before we put
them in the DB.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Cisco Inc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20101015/33dc536f/attachment.pgp>


More information about the samba-technical mailing list