summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorform <form@openbsd.org>1998-10-05 05:13:34 +0000
committerform <form@openbsd.org>1998-10-05 05:13:34 +0000
commit63c3405f3c7203c90d7d2efda2a04736c76e17be (patch)
treea196d9b44f3f2ad4997cb840f2f5a52b3931cad4
parentmake DIOCGPDINFO equivalent to DIOCGDINFO for cd's (diff)
downloadwireguard-openbsd-63c3405f3c7203c90d7d2efda2a04736c76e17be.tar.xz
wireguard-openbsd-63c3405f3c7203c90d7d2efda2a04736c76e17be.zip
check write permissions to ${DISTDIR} before trying to fetch distfiles.
-rw-r--r--share/mk/bsd.port.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index ebcfee54b46..c77599821f1 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -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 @@ do-fetch:
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 \