Jordi Sanfeliu wrote in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-07/msg00116.html>:
I've detected that chown and chgrp commands will not change the
owner/group of a device file (char or block) that doesn't exist on a
system that don't has the system call sys_lchown.
On which platform do you see this? I'm asking because
- on most current portability targets (Linux, macOS, *BSD, AIX, Solaris,
Cygwin)
the configure test
checking whether chown dereferences symlinks...
reports 'yes', thus CHOWN_MODIFIES_SYMLINK will not be defined.
That's because lchown is part of POSIX. See
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/lchown.html>
and
<https://www.gnu.org/software/gnulib/manual/html_node/lchown.html>.
- on native Windows symlinks are not handled by gnulib and coreutils
(i.e. it's treated like a platforms without symlinks), AFAIK.
Bruno