summaryrefslogtreecommitdiff
path: root/sys/conf
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-02-06 08:42:34 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-02-06 08:42:34 +0000
commit85f036914cc870463d7b300383dccef399f1f0ff (patch)
tree105ef7450713be5a15b3e49e949608c8bad0aa6c /sys/conf
parent6ae38fae785a15531cd437612aa9e31b28791a78 (diff)
Run newvers.sh with umask 007 to work around permission issues that
cause 'make release' fail the first time around after building GENERIC if /usr/obj/ wasn't cleaned out properly. The proper fix would be to implement privdrop for kernel builds but this is trickier than it looks at first sight. discussed with deraadt
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/newvers.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index f6815812d5f..e8e62d40bca 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: newvers.sh,v 1.157 2017/10/04 17:59:41 benno Exp $
+# $OpenBSD: newvers.sh,v 1.158 2018/02/06 08:42:33 tb Exp $
# $NetBSD: newvers.sh,v 1.17.2.1 1995/10/12 05:17:11 jtc Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
@@ -32,6 +32,8 @@
#
# @(#)newvers.sh 8.1 (Berkeley) 4/20/94
+umask 007
+
if [ ! -r version -o ! -s version ]
then
echo 0 > version