summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron>2009-11-23 00:25:13 +0000
committertron <tron>2009-11-23 00:25:13 +0000
commitc2612348f585211516dcc9b85da3da0e3ca60ee3 (patch)
tree46248394918fa312909c2ded9b6b5015c205188f /mk
parentfb24895df8d2c77a4762c256aede2565da428636 (diff)
downloadpkgsrc-c2612348f585211516dcc9b85da3da0e3ca60ee3.tar.gz
Make wrapper generation code work properly if there is a directory with
a whitespace in the command search path.
Diffstat (limited to 'mk')
-rw-r--r--mk/wrapper/bsd.wrapper.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk
index 185cdb8edd3..014e1c999d5 100644
--- a/mk/wrapper/bsd.wrapper.mk
+++ b/mk/wrapper/bsd.wrapper.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.wrapper.mk,v 1.83 2009/05/30 19:18:01 joerg Exp $
+# $NetBSD: bsd.wrapper.mk,v 1.84 2009/11/23 00:25:13 tron Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -459,9 +459,9 @@ ${_WRAP_COOKIE.${_wrappee_}}: \
*${WRAPPER_DIR}*) \
;; \
*) \
- if ${TEST} -f $${dir}/$$wrappee -o \
- -h $${dir}/$$wrappee; then \
- wrappee=$${dir}/$$wrappee; \
+ if ${TEST} -f "$${dir}/$$wrappee" -o \
+ -h "$${dir}/$$wrappee"; then \
+ wrappee="$${dir}/$$wrappee"; \
break; \
fi; \
;; \