sys_lchown [fs/open.c]
Sets the owner ID and group ID of the named file in the same manner as sys_chown, unless the named file is a symbolic link. In this case, sys_lchown changes the ownership of the symbolic link file itself. Arguments
eax | 16
ebx | Pointer to a null-terminated string that specifies the name of a file.
ecx | New UID. If this value is -1, the user ID is not changed.
edx | New GID. If this value is -1, the group ID is not changed
Return values If the system call succeeds the return value is 0. If the system call fails the return value is one of the following errno values:
`-ENOENT` | `The file does not exist.`
`-ENOMEM` | `Insufficient kernel memory was available.`
`-ENOTDIR` | `A component of the path prefix is not a directory.`
`-EPERM` | `The calling process did not have the required permissions (see above) to change owner and/or group.`
`-EROFS` | `The named file resides on a read-only file system.`
`-ENAMETOOLONG` | `Path is too long.`
`-ELOOP` | `Too many symbolic links were encountered in path resolving.`
`-EFAULT` | `Path points outside your accessible address space.`
`-EACCESS` | `Search permission is denied on a component of the path prefix.`
Remarks See remarks about sys_chown. Compatibility n/a