diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-04-09 18:47:15 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-04-09 18:47:15 +0000 |
commit | e5b489474ef8d0f38cb59905768f98d4c6e2dc78 (patch) | |
tree | 241e667c9bd5b32f669321845aa8a1b7c3af9d47 /sys/conf/newvers.sh | |
parent | 1b64cb1871eaf62d01894d364f849558f32ebf36 (diff) |
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@
Diffstat (limited to 'sys/conf/newvers.sh')
-rw-r--r-- | sys/conf/newvers.sh | 4 |
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: |