lib/replace: use syscall(__NR_openat2) if available
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Aug 2022 13:25:39 +0000 (15:25 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 15 Aug 2022 15:03:37 +0000 (15:03 +0000)
commitb89001e9226ecb0f4e5c906f7195f0e53cd7d608
tree2359614ec4450d98b9e1e9c44e92d6a123dba61a
parent37ba6df174d73b82e951de401cba7f839ad61ab5
lib/replace: use syscall(__NR_openat2) if available

There's no glibc wrapper for openat2() yet, so we need
to use syscall(__NR_openat2) ourself.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/replace/replace.c