[Pkg-sssd-devel] Bug#1069450: socket_wrapper and the time_t 64-bit is hard

Andrew Bartlett abartlet at samba.org
Mon Apr 29 02:03:22 BST 2024


Just a warning that trying to brute force a fix for this is likely to
end badly.  A lot of developer time was spent to get to this current
delicate situation, which relied on the narrow behaviour that is now
eliminated by the Debian time_t 64 transition rules. 

Socket-wrapper starts with:

/*
 * Make sure we do not redirect (f)open(at)() or fcntl() to their 64bit
 * variants
 */
#undef _FILE_OFFSET_BITS

This was added in 
https://gitlab.com/cwrap/socket_wrapper/-/commit/bbe14cc3200ca553b13ed49357e2e88ba487eeaa

Setting  -D_FILE_OFFSET_BITS=64 will break the fcntl64 wrapper and so
break Samba's tests. 

I don't know if there is a good fix for this actually.  

Andrew Bartlett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-sssd-devel/attachments/20240429/178a274e/attachment.htm>


More information about the Pkg-sssd-devel mailing list