mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
rootless: use SYS_renameat2 instead of __NR_renameat2
use the correct definition for the syscall number. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -24,8 +24,8 @@
|
||||
|
||||
int renameat2 (int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags)
|
||||
{
|
||||
# ifdef __NR_renameat2
|
||||
return (int) syscall (__NR_renameat2, olddirfd, oldpath, newdirfd, newpath, flags);
|
||||
# ifdef SYS_renameat2
|
||||
return (int) syscall (SYS_renameat2, olddirfd, oldpath, newdirfd, newpath, flags);
|
||||
# else
|
||||
/* no way to implement it atomically. */
|
||||
errno = ENOSYS;
|
||||
|
Reference in New Issue
Block a user