> ln duplicates a directory entry. The fact that the directory entry that
> you're duplicating is a symlink is irrelevant. This is basic
> functionality.

Ack.

> If you want to implement this potentially illegal functionality, then I'd
> write it as a local wrapper, but because of all the possible exceptions,

I strongly disagree. The functionality is very legal, whether the user
gives illegal arguments is not ln's problem. Neither does ln itself need
to implement any checks on this, it just needs to call link() (or
whatever function it is). link() will no doubt return an error if the
destination isn't there or on a different filesystem or whatever. This
in fact is not one bit different to what ln does anyway when called
without arguments. Whether the argument to ln is dereferenced first or
not is a different functionality but creates no difference for the
hardlink creation.

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

Reply via email to