lchown
======

POSIX specification:
 https://pubs.opengroup.org/onlinepubs/9699919799/functions/lchown.html

Gnulib module: lchown

Portability problems fixed by Gnulib:

  * This function is missing on some platforms; however, the replacement fails with ENOSYS: mingw, MSVC 14.

  * This function is missing on some platforms; however, the replacement fails on symlinks: Minix 3.2.1.

  * Some platforms fail to detect trailing slash on non-directories, as in lchown("link-to-file/",uid,gid): FreeBSD 7.2, Solaris 9.

  * Some platforms fail to update the change time when at least one argument was not -1, but no ownership changes resulted.  However, without lchmod, the replacement only fixes this for non-symlinks: OpenBSD 4.0.

Portability problems not fixed by Gnulib:

  * This function sometimes fails with EACCES when the failure is due to lack of appropriate privileges (EPERM), not to search permission denied on the file name prefix (EACCES): Linux kernel 5.15 with glibc 2.35 and a CIFS v1 file system (see https://bugs.gnu.org/65599).