From 4bf0061d985a887231faebb13c06db80db391592 Mon Sep 17 00:00:00 2001 From: John Marino Date: Wed, 22 Jul 2015 13:54:22 +0200 Subject: [PATCH] bsd.links.mk: Support symlinks to directories Recently locales support utilized symlinks to directories. On the second installworld, the links were followed and installed there, creating dangling links. The commit forces symlinks to directories to be removed before recreating them (as is done for files). The effect on file symlinks is unchanged. --- share/mk/bsd.links.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.links.mk b/share/mk/bsd.links.mk index 620ae57e4c..25f0bdb272 100644 --- a/share/mk/bsd.links.mk +++ b/share/mk/bsd.links.mk @@ -27,6 +27,6 @@ _installlinks: t=${DESTDIR}$$1; \ shift; \ ${ECHO} $$t -\> $$l; \ - ${LN} -fs $$l $$t; \ + ${LN} -fhs $$l $$t; \ done; true .endif -- 2.41.0