sys_chown() hits symlinks

Richard Gooch (rgooch@atnf.CSIRO.AU)
Sun, 18 Jan 1998 18:53:06 +1100

Hi, all. I note that sys_chown() on a symlink will affect the
uid/gid of the symlink rather than the file that is pointed to. This
contrasts to sys_chmod() which affects the file at the end of the
link, as you would expect. A quick check with Solaris shows that for
both chmod(2) and chown(2) the symlink is traversed.

Is this inconsistency intentional? If so, why?