socket_wrapper: inject O_LARGEFILE to open[64|at]() if needed
authorStefan Metzmacher <metze@samba.org>
Wed, 23 Nov 2022 10:46:45 +0000 (11:46 +0100)
committerAndreas Schneider <asn@samba.org>
Thu, 24 Nov 2022 09:24:11 +0000 (10:24 +0100)
commitc562535f1efef204f553ed793cfd9c7efada8b3f
tree73db3a2f362d570886d9f17c68bd88455edb04a3
parentf0a511f6a4b60b63efcf0ddeec889672bd6d6a76
socket_wrapper: inject O_LARGEFILE to open[64|at]() if needed

On 32bit systems this is normally done by glibc if _FILE_OFFSET_BITS is 64,
but with socket wrapper we don't want to define _FILE_OFFSET_BITS=64,
as we need to overload open64 explicitly. But we need to inject
O_LARGEFILE for being transparent to the application.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15251

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
src/socket_wrapper.c