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 Thu, Apr 4, 2:14 PM
Reviewer
allanjude
Differential Revision
D44635: ln: Improve link(1) variant of ln(1).
Parents
rG59c3e7a18c7c: tarfs: Support paths that spill into exthdrs.
Branches
Unknown
Tags
Unknown