Implement '-s' to copy as symlink, similar to the current -l link(2) handling.
authorbdrewery <bdrewery@FreeBSD.org>
Sun, 7 Jun 2015 06:30:25 +0000 (06:30 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Sun, 7 Jun 2015 06:30:25 +0000 (06:30 +0000)
commit4e68976c74c31df589e6df98a36af08d01812eb3
treef14fc15dd11f8aa22eae8093c31c9482a73ff4e6
parent939189542ecd10392ffaf53f33e9ea26735a3b84
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
bin/cp/cp.1
bin/cp/cp.c
bin/cp/extern.h
bin/cp/utils.c