Browse Source

fix recursive symlink issue

SVN-Revision: 12508
Felix Fietkau 17 years ago
parent
commit
56885c545e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/Makefile

+ 1 - 1
tools/Makefile

@@ -38,7 +38,7 @@ $(STAGING_DIR_HOST)/bin/md5sum: $(STAGING_DIR)/.prepared
 	fi
 
 $(STAGING_DIR_HOST)/bin/find: $(STAGING_DIR)/.prepared
-	[ -x "$(FIND)" ] && ln -sf "$(FIND)" $@
+	[ -x "$(FIND)" -a "$(FIND)" != "$@" ] && ln -sf "$(FIND)" $@
 
 
 $(curdir)/cmddeps = $(patsubst %,$(STAGING_DIR_HOST)/bin/%,find md5sum)