HomeFreeBSD

ln: Improve link(1) variant of ln(1).

Description

ln: Improve link(1) variant of ln(1).

  • Give link(1) its own usage message.
  • Use getprogname(3) instead of rolling our own.
  • Verify that the target file does not already exist.
  • Add tests specific to link(1).

MFC after: 3 days
Sponsored by: Klara, Inc.
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D44635

(cherry picked from commit bee7cf9e97f6d7bdc918421a93270fa88659808b)

Details

Provenance
desAuthored on Apr 4 2024, 2:14 PM
Reviewer
allanjude
Differential Revision
D44635: ln: Improve link(1) variant of ln(1).
Parents
rG39d543db53a4: cp: Improved conformance when copying directories.
Branches
Unknown
Tags
Unknown