From 63760603f3adec2fb696018f6c1c77feeb0dbdd0 Mon Sep 17 00:00:00 2001 From: circl Date: Fri, 31 Dec 2021 19:20:17 +0100 Subject: Kernel+LibC+LibCore: Add lchown and fchownat functions This modifies sys$chown to allow specifying whether or not to follow symlinks and in which directory. This was then used to implement lchown and fchownat in LibC and LibCore. --- Kernel/API/Syscall.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Kernel/API') diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 6372efb165..d02184fdfd 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -400,6 +400,8 @@ struct SC_chown_params { StringArgument path; u32 uid; u32 gid; + int dirfd; + int follow_symlinks; }; struct SC_mknod_params { -- cgit v1.2.3