link(1M) and link(2) should have POSIX behavior

Issue #71 resolved
Garrett D'Amore repo owner created an issue

The legacy semantics of link(2) are not needed, except to support link(1M). ln(1M) doesn't have the documented behavior that link(1M) does.

We should eliminate the legacy behavior from the sys call (lib interface really), and the command.

Specifically, if the target (source) of a hard link is a symbolic link, then the link count should be made to the symbolic link's target rather than the link itself. This behaves like AT_SYMLINK_FOLLOW for linkat().

Comments (2)

  1. Log in to comment