Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 73eab50

Browse files
committed
Merge pull request #630 from tsuna/master
Handle SYS_setns not existing but __NR_setns does.
2 parents 5dc7ba0 + 6aeb7e1 commit 73eab50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nsenter/nsexec.c

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ static int child_func(void *_arg)
4040
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 14
4141
#define _GNU_SOURCE
4242
#include "syscall.h"
43+
#if defined(__NR_setns) && !defined(SYS_setns)
44+
#define SYS_setns __NR_setns
45+
#endif
4346
#ifdef SYS_setns
4447
int setns(int fd, int nstype)
4548
{

0 commit comments

Comments
 (0)