Browse Source

'ln -f -s ...' is not reliable/portable. Use 'rm -f ...; ln -s ...'

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@624 f882894a-f735-0410-b71e-b25c423dba1c
Karl DeBisschop 22 years ago
parent
commit
30c81e1c78
1 changed files with 3 additions and 2 deletions
  1. 3 2
      plugins/Makefile.am

+ 3 - 2
plugins/Makefile.am

@@ -130,11 +130,12 @@ gethostbyname.o: gethostbyname.h $(PLUGINHDRS)
 all-local: $(check_tcp_programs)
 all-local: $(check_tcp_programs)
 
 
 $(check_tcp_programs): check_tcp
 $(check_tcp_programs): check_tcp
-	ln -s -f check_tcp $@
+	rm -f $@
+	ln -s check_tcp $@
 
 
 install-exec-hook:
 install-exec-hook:
 	cd $(DESTDIR)$(libexecdir) && \
 	cd $(DESTDIR)$(libexecdir) && \
-	for i in $(check_tcp_programs) ; do rm -f $$i; ln -s -f check_tcp $$i ; done
+	for i in $(check_tcp_programs) ; do rm -f $$i; ln -s check_tcp $$i ; done
 
 
 clean-local:
 clean-local:
 	rm -f $(check_tcp_programs)
 	rm -f $(check_tcp_programs)