Kernel+Userland: Implement fchmod() syscall and use it to improve /bin/cp.

/bin/cp will now copy the permission bits from source to destination. :^)
This commit is contained in:
Andreas Kling 2019-03-01 10:39:19 +01:00
commit 1b16a29044
Notes: sideshowbarker 2024-07-19 15:34:50 +09:00
10 changed files with 54 additions and 14 deletions

View file

@ -34,6 +34,8 @@ public:
ssize_t write(Process&, const byte* data, ssize_t);
int fstat(stat*);
KResult fchmod(mode_t);
bool can_read(Process&);
bool can_write(Process&);