aboutsummaryrefslogtreecommitdiff
path: root/pkg/rootless
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-11-06 13:41:12 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-11-06 13:41:15 +0100
commita114e9059a660ffab9f61f49d826b1809abd77b8 (patch)
treedd63aa378c2f093555d9142830c36ebc9340be09 /pkg/rootless
parent381fa4df875af3d2acee34d4fc1a608b2218b551 (diff)
downloadpodman-a114e9059a660ffab9f61f49d826b1809abd77b8.tar.gz
podman-a114e9059a660ffab9f61f49d826b1809abd77b8.tar.bz2
podman-a114e9059a660ffab9f61f49d826b1809abd77b8.zip
rootless: use SYS_renameat2 instead of __NR_renameat2
use the correct definition for the syscall number. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/rootless')
-rw-r--r--pkg/rootless/rootless_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c
index 94933ddd0..a29ea0ce1 100644
--- a/pkg/rootless/rootless_linux.c
+++ b/pkg/rootless/rootless_linux.c
@@ -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;