mikaku/Fiwix

Support syscall chown32

Closed this issue · 1 comments

This syscall is needed for musl support because musl defaults to using this version of this system call rather than SYS_chown.
This syscall supports 32-bit user and group ids (versus 16-bit for the SYS_chown syscall).

Test program is attached. Note that this requires super user permissions to change the file ownership.

# cc -m32 testchown32.c -o testchown32
# touch testfile
# ./testchown32
stat64: uid is 80000
stat64: gid is 80001
# rm testfile

testchown32.c.gz

mikaku commented

Thank you very much.