Regardless, openat2 looks like a much better solution. I hope it's backported to LTS distros so I can start relying on it before 2035...