=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/share/mk/bsd.port.mk,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- src/share/mk/bsd.port.mk 1998/09/08 05:51:06 1.45 +++ src/share/mk/bsd.port.mk 1998/10/05 05:13:34 1.46 @@ -1,6 +1,6 @@ #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 -# $OpenBSD: bsd.port.mk,v 1.45 1998/09/08 05:51:06 marc Exp $ +# $OpenBSD: bsd.port.mk,v 1.46 1998/10/05 05:13:34 form Exp $ # # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. @@ -1111,6 +1111,10 @@ fi ; \ fi ; \ ${ECHO_MSG} ">> $$file doesn't seem to exist on this system."; \ + if [ ! -w ${_DISTDIR}/. ]; then \ + ${ECHO_MSG} ">> Can't download to ${_DISTDIR} (permission denied?)."; \ + exit 1; \ + fi; \ for site in ${MASTER_SITES}; do \ ${ECHO_MSG} ">> Attempting to fetch from $${site}."; \ if ${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}$${file} ${FETCH_AFTER_ARGS}; then \