mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Use exists and rename instead of renameat2 which is only available in the linux implementation of libc. To enable compilation of pvsecret on macos the rust wrapper function renameat2 which calls the libc renameat2 function is replaced with rust native std::fs::exists ad std::fs::rename functions because macos' implementation of libc does not have the renameat2 function. Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Finn Callies <fcallies@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>