summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2017-01-22 23:38:31 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2017-01-22 23:38:31 +0000
commit4b1cfae01d81f5def384d5f3a435e0602d3f5664 (patch)
tree6e65ab88c40913c8cf1f8ffd9384dffb6e6d05d7 /distrib/miniroot
parent07d91b5b6b96421b7cffde5f09d2667d10a62332 (diff)
Ensure the right hand side of the test is not treated as pattern.
OK tb@
Diffstat (limited to 'distrib/miniroot')
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index ea21a9647c7..e2413963386 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.953 2017/01/22 23:37:37 rpe Exp $
+# $OpenBSD: install.sub,v 1.954 2017/01/22 23:38:30 rpe Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -150,7 +150,7 @@ rmel() {
shift
for _b; do
- [[ $_a != $_b ]] && _c="${_c:+$_c }$_b"
+ [[ $_a != "$_b" ]] && _c="${_c:+$_c }$_b"
done
echo -n "$_c"
}