diff --git a/src/kernel/emulation/linux/unistd/fchown.c b/src/kernel/emulation/linux/unistd/fchown.c index 93b98c49c..af041c387 100644 --- a/src/kernel/emulation/linux/unistd/fchown.c +++ b/src/kernel/emulation/linux/unistd/fchown.c @@ -5,6 +5,7 @@ long sys_fchown(int fd, int uid, int gid) { +#if 0 int ret; #ifdef __NR_fchown32 @@ -16,5 +17,8 @@ long sys_fchown(int fd, int uid, int gid) ret = errno_linux_to_bsd(ret); return ret; +#else + return 0; +#endif } diff --git a/src/kernel/emulation/linux/unistd/fchownat.c b/src/kernel/emulation/linux/unistd/fchownat.c index 87ea4c208..d3fc08505 100644 --- a/src/kernel/emulation/linux/unistd/fchownat.c +++ b/src/kernel/emulation/linux/unistd/fchownat.c @@ -11,6 +11,7 @@ extern char* strcpy(char* dst, const char* src); long sys_fchownat(int fd, const char* path, int uid, int gid, int flag) { +#if 0 int ret; struct vchroot_expand_args vc; @@ -29,4 +30,7 @@ long sys_fchownat(int fd, const char* path, int uid, int gid, int flag) ret = errno_linux_to_bsd(ret); return ret; +#else + return 0; +#endif } diff --git a/src/kernel/emulation/linux/unistd/lchown.c b/src/kernel/emulation/linux/unistd/lchown.c index f14984051..f37dab150 100644 --- a/src/kernel/emulation/linux/unistd/lchown.c +++ b/src/kernel/emulation/linux/unistd/lchown.c @@ -9,6 +9,7 @@ long sys_lchown(const char* path, int uid, int gid) { +#if 0 int ret; struct vchroot_expand_args vc; @@ -30,4 +31,7 @@ long sys_lchown(const char* path, int uid, int gid) ret = errno_linux_to_bsd(ret); return ret; +#else + return 0; +#endif }