Use __NR_setns so that setns has the right syscall # in 32-bit mode

fixes #127
This commit is contained in:
Bob Lantz
2013-04-09 19:38:36 -07:00
parent 7c920edc29
commit 33c7e46492
+1 -1
View File
@@ -46,7 +46,7 @@ void usage(char *name)
int setns(int fd, int nstype)
{
return syscall(308, fd, nstype);
return syscall(__NR_setns, fd, nstype);
}
/* Validate alphanumeric path foo1/bar2/baz */