chmod
=====

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

Gnulib module: chmod

Portability problems fixed by Gnulib:

  * This function does not fail when the file name argument ends in a slash and (without the slash) names a non-directory, on some platforms: AIX 7.2, IRIX 6.5.

  * This function fails with a wrong error code (EINVAL instead of ENOTDIR) when the file name argument ends in a slash and (without the slash) names a non-directory, on some platforms: mingw, MSVC.

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).