Jim Meyering <[EMAIL PROTECTED]> writes:
> If anyone knows how to test chown(2) -- to see if it dereferences symlinks --
> when called by a non-root user with only one group, please let me know.
Can't you do something like this?
ln -s nosuchfile danglingsymlink
if (chown ("danglingsymlink", getuid (), getgid ()) != 0
&& errno == ENOENT)
print ("chown follows symlinks");
else
print ("chown does not follow symlinks");
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils