HomeFreeBSD

Implement '-s' to copy as symlink, similar to the current -l link(2) handling.

Description

Implement '-s' to copy as symlink, similar to the current -l link(2) handling.

This is also implemented in at least GNU coreutils cp.

While here also improve the '-l' handling to not open(2) the source file as
it does not actually need the descriptor.

Sponsored by: EMC / Isilon Storage Division

Details

Provenance
bdreweryAuthored on
Parents
rS284105: Cleanup some indentation issues.
Branches
Unknown
Tags
Unknown