Merge pull request #2543 from giuseppe/fix-rootless-s390x-cris
rootless: fix clone syscall on s390 and cris archs
This commit is contained in:
commit
7418ff988b
|
|
@ -32,7 +32,11 @@ syscall_setresgid (gid_t rgid, gid_t egid, gid_t sgid)
|
||||||
static int
|
static int
|
||||||
syscall_clone (unsigned long flags, void *child_stack)
|
syscall_clone (unsigned long flags, void *child_stack)
|
||||||
{
|
{
|
||||||
|
#if defined(__s390__) || defined(__CRIS__)
|
||||||
|
return (int) syscall (__NR_clone, child_stack, flags);
|
||||||
|
#else
|
||||||
return (int) syscall (__NR_clone, flags, child_stack);
|
return (int) syscall (__NR_clone, flags, child_stack);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static char **
|
static char **
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue