From 51456d87d356559d3ed7f6e2395a7ae6de159e42 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Tue, 13 Aug 2019 14:26:13 +0000 Subject: [PATCH] Use ln -n to avoid following symlinks to directories. Evidently -h is the BSD option for `don't follow symlinks', following the convention of chmod and other utilities, while -n is the GNU option; fortunately at least NetBSD ln has had -n too for GNU compatibility for decades so I'm satisfied with -n. (Neither one is POSIX.) --- src/Makefile.tools.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.tools.in b/src/Makefile.tools.in index ffa9554e5..7641fe865 100644 --- a/src/Makefile.tools.in +++ b/src/Makefile.tools.in @@ -115,7 +115,7 @@ clean: SCHEME_OBJECTS_PATTERN = *.bci *.bin *.crf *.com *.ext *.fre *.lap *.pkd *.rtl -SYMLINK = link () { test -h "$$2" || ln -sfh "$$1" "$$2"; }; link +SYMLINK = link () { test -h "$$2" || ln -sfn "$$1" "$$2"; }; link .PHONY: tooldir tooldir: -- 2.25.1