summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-10-18 20:31:47 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-10-18 20:31:47 +0000
commit8816f0910ed7c53aafe6bf87976bcec68cd1e7da (patch)
treea2edb86535f4777f198e6b8174a8129c80880804 /distrib/miniroot
parentd5edb539bab16e3d4e8fe30ae3f821747031a447 (diff)
Check for selection == empty string in glob_selection so we don't get syntax errors when we use that as part of a case statement
Diffstat (limited to 'distrib/miniroot')
-rw-r--r--distrib/miniroot/install.sub6
1 files changed, 5 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 1c327874e79..68fac1ceca8 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sub,v 1.104 1998/10/11 02:50:47 deraadt Exp $
+# $OpenBSD: install.sub,v 1.105 1998/10/18 20:31:46 millert Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997,1998 Todd Miller, Theo de Raadt
@@ -821,6 +821,10 @@ glob_selection() {
local _tfile
local _f
+ if [ "X${_selection}" = X"" ]; then
+ return
+ fi
+
# Change +/- into add/remove
_action=add
case "$_selection" in