diff options
author | tron <tron@pkgsrc.org> | 2009-11-23 00:25:13 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2009-11-23 00:25:13 +0000 |
commit | bc1c3132e99af08ecb663a574b5ba80de4a39aa9 (patch) | |
tree | 46248394918fa312909c2ded9b6b5015c205188f /mk/wrapper | |
parent | dbb843bcf3ad888c7f7de78aa8c69f1d7eb7acaf (diff) | |
download | pkgsrc-bc1c3132e99af08ecb663a574b5ba80de4a39aa9.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/wrapper')
-rw-r--r-- | mk/wrapper/bsd.wrapper.mk | 8 |
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; \ ;; \ |