Fix -S with -l not being atomic.
authorbdrewery <bdrewery@FreeBSD.org>
Wed, 10 Aug 2016 18:19:08 +0000 (18:19 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Wed, 10 Aug 2016 18:19:08 +0000 (18:19 +0000)
commit9c0059d165881c3058c30ec800f834bf29ec802d
tree15f0c3a239a57fd70da32dea6ede48558ecca305
parent1d0f7d0c892013714ed05495f48319c1d6cfeb10
Fix -S with -l not being atomic.

It was unlinking the target even though it uses rename(2) which already
effectively does that.  -S is intended to not unlink(2) the target first.

MFC after: 1 week
Reviewed by: jhb
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D7452
usr.bin/xinstall/xinstall.c