summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2013-04-09 18:47:14 +0000
committermlarkin <mlarkin@openbsd.org>2013-04-09 18:47:14 +0000
commit4ffe4048e67019fc4998c43df48f8dcbd7776405 (patch)
tree99895ff051fa5a0d7a14d0dd2936a5d2562f0b0e
parentAdd extended header support for ustar. Currently only path and linkpath are (diff)
downloadwireguard-openbsd-4ffe4048e67019fc4998c43df48f8dcbd7776405.tar.xz
wireguard-openbsd-4ffe4048e67019fc4998c43df48f8dcbd7776405.zip
newvers.sh uses 'basename' to determine the directory name to stamp the
kernel version ID with, but it did not account for spaces in the name, leading to version strings like "OpenBSD 5.3-current ()". Quote the call to basename to permit paths with spaces in the name. ok halex@, deraadt@
-rw-r--r--sys/conf/newvers.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index ac88ebcbc61..c7f90427e7c 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: newvers.sh,v 1.124 2013/03/01 21:06:04 guenther Exp $
+# $OpenBSD: newvers.sh,v 1.125 2013/04/09 18:47:14 mlarkin Exp $
# $NetBSD: newvers.sh,v 1.17.2.1 1995/10/12 05:17:11 jtc Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
@@ -39,7 +39,7 @@ fi
touch version
v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date`
-id=`basename ${d}`
+id=`basename "${d}"`
# additional things which need version number upgrades:
# sys/sys/param.h: