Add a check for when the user tries to FTP over a symlink in ${DISTDIR}.

This commit is contained in:
Jordan K. Hubbard 1996-02-16 11:19:00 +00:00
parent 825e82efc8
commit 2178a48a11
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14106

View File

@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
# $Id: bsd.port.mk,v 1.191 1996/02/07 09:54:23 asami Exp $
# $Id: bsd.port.mk,v 1.192 1996/02/08 00:44:33 adam Exp $
#
# Please view me with 4 column tabs!
@ -488,6 +488,12 @@ do-fetch:
@(cd ${DISTDIR}; \
for file in ${DISTFILES}; do \
if [ ! -f $$file -a ! -f `/usr/bin/basename $$file` ]; then \
if [ -h $$file -o -h `/usr/bin/basename $$file` ]; then \
${ECHO_MSG} ">> ${DISTDIR}/$$file is a broken symlink."; \
${ECHO_MSG} ">> Perhaps a filesystem (most likely a CD) isn't mounted?"; \
${ECHO_MSG} ">> Please correct this problem and try again."; \
exit 1; \
fi ; \
${ECHO_MSG} ">> $$file doesn't seem to exist on this system."; \
for site in ${MASTER_SITES}; do \
${ECHO_MSG} ">> Attempting to fetch from $${site}."; \
@ -506,6 +512,12 @@ do-fetch:
@(cd ${PATCHDIST}; \
for file in ${PATCHFILES}; do \
if [ ! -f $$file -a ! -f `/usr/bin/basename $$file` ]; then \
if [ -h $$file -o -h `/usr/bin/basename $$file` ]; then \
${ECHO_MSG} ">> ${PATCHDIST}/$$file is a broken symlink."; \
${ECHO_MSG} ">> Perhaps a filesystem (most likely a CD) isn't mounted?"; \
${ECHO_MSG} ">> Please correct this problem and try again."; \
exit 1; \
fi ; \
${ECHO_MSG} ">> $$file doesn't seem to exist on this system."; \
for site in ${PATCH_SITES}; do \
${ECHO_MSG} ">> Attempting to fetch from $${site}."; \