X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Flinux%2Fchroot.c;h=0e69f145dee37cbdc865f6cf6e222a1658d58cdc;hb=233767b48a083f526557ee39aa1c773efa345972;hp=81363a6b48b2e157967531fcf6565d99c1261886;hpb=9b235e8374bfe15f73d470b4ad7d1c579fd9a71e;p=musl diff --git a/src/linux/chroot.c b/src/linux/chroot.c index 81363a6b..0e69f145 100644 --- a/src/linux/chroot.c +++ b/src/linux/chroot.c @@ -1,7 +1,8 @@ +#define _GNU_SOURCE #include #include "syscall.h" int chroot(const char *path) { - return syscall1(__NR_chroot, (long)path); + return syscall(SYS_chroot, path); }