Skip to content
Snippets Groups Projects
Commit 33c7e464 authored by Bob Lantz's avatar Bob Lantz
Browse files

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

fixes #127
parent 7c920edc
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ void usage(char *name) ...@@ -46,7 +46,7 @@ void usage(char *name)
int setns(int fd, int nstype) int setns(int fd, int nstype)
{ {
return syscall(308, fd, nstype); return syscall(__NR_setns, fd, nstype);
} }
/* Validate alphanumeric path foo1/bar2/baz */ /* Validate alphanumeric path foo1/bar2/baz */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment