Pierre Vinet <[EMAIL PROTECTED]> writes: > + chown --no-dereference 0:1 slink > ++ ls -n slink > + set _ lrwxr-xr-x 1 0 502 1 Mar 21 18:38 slink '->' f > + shift > + test 0:502 = 0:1 > + fail=1
This is a tricky one. 'chown --no-dereference 0:1 slink' is supposed to do nothing without any complaint "if the system does not support user or group IDs for symbolic links" -- that's the POSIX requirement. Darwin does not provide an lchown function, so I suppose one could argue that this means "the system does not support user or group IDs for symbolic links". And yet you can see those IDs; ls -l is showing them. So perhaps "chown --no-dereference 0:1 slink" should fail on Darwin. However, the argument against having "chown --no-dereference 0:1 slink" fail is that there is no portable way to tell whether "the system does not support user or group IDs for symbolic links", other than trying to invoke lchown and seeing whether it fails with EOPNOTSUPP. (Which is what chown already does.) So I'd call this a bug in the test suite. It should not assume that "chown --no-dereference 0:1 slink" must succeed, even for root. On some file systems and/or implementations, it will fail. _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils