From: Eric Andersen Date: Wed, 3 Dec 2003 17:18:41 +0000 (-0000) Subject: Prevent install from following symlinks and overwriting bin/busybox X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=435a4f723af2fc016eed62fe14175ab4867a522e;p=buildroot.git Prevent install from following symlinks and overwriting bin/busybox --- diff --git a/make/bzip2.mk b/make/bzip2.mk index 6aa4a88dfa..299105a911 100644 --- a/make/bzip2.mk +++ b/make/bzip2.mk @@ -42,6 +42,8 @@ $(BZIP2_BINARY): $(STAGING_DIR)/lib/libbz2.so.1.0.2 $(MAKE) CC=$(TARGET_CC) -C $(BZIP2_DIR) bzip2 bzip2recover $(BZIP2_TARGET_BINARY): $(BZIP2_BINARY) + (cd $(TARGET_DIR)/usr/bin; \ + rm -f bzip2 bunzip2 bzcat bzip2recover bzgrep bzegrep bzfgrep bzmore bzless bzdiff bzcmp); $(TARGET_CONFIGURE_OPTS) \ $(MAKE) PREFIX=$(TARGET_DIR)/usr -C $(BZIP2_DIR) install rm -f $(TARGET_DIR)/usr/lib/libbz2.a