| Index: fusl/src/unistd/lchown.c
|
| diff --git a/fusl/src/unistd/lchown.c b/fusl/src/unistd/lchown.c
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ccd5ee0255eea2af0dcec6f134e21ce07a896faf
|
| --- /dev/null
|
| +++ b/fusl/src/unistd/lchown.c
|
| @@ -0,0 +1,12 @@
|
| +#include <unistd.h>
|
| +#include <fcntl.h>
|
| +#include "syscall.h"
|
| +
|
| +int lchown(const char *path, uid_t uid, gid_t gid)
|
| +{
|
| +#ifdef SYS_lchown
|
| + return syscall(SYS_lchown, path, uid, gid);
|
| +#else
|
| + return syscall(SYS_fchownat, AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW);
|
| +#endif
|
| +}
|
|
|