mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +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)
|
int renameat2 (int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags)
|
||||||
{
|
{
|
||||||
# ifdef __NR_renameat2
|
# ifdef SYS_renameat2
|
||||||
return (int) syscall (__NR_renameat2, olddirfd, oldpath, newdirfd, newpath, flags);
|
return (int) syscall (SYS_renameat2, olddirfd, oldpath, newdirfd, newpath, flags);
|
||||||
# else
|
# else
|
||||||
/* no way to implement it atomically. */
|
/* no way to implement it atomically. */
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
|
Reference in New Issue
Block a user