diff options
author | jhb <jhb@FreeBSD.org> | 2005-07-01 15:43:09 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-07-01 15:43:09 +0000 |
commit | 2523f635902c1b1743e4cd1ca9c7d84b95bcc692 (patch) | |
tree | 816e47464d96948389bdd70e8b9a60bfb9b28f64 /sys | |
parent | a28c593c4dc6f69a258108fbe9c89ce5e9ff20fe (diff) | |
download | FreeBSD-src-2523f635902c1b1743e4cd1ca9c7d84b95bcc692.zip FreeBSD-src-2523f635902c1b1743e4cd1ca9c7d84b95bcc692.tar.gz |
Fix what(1) on kernel binaries by duplicating part of version[] in sccs[]
and stop trying to play cute games so that sccs[] shares space with
version[].
Reported by: Jilles Tjoelker jilles at stack dot nl
Discussed with: bde, "R. Imura" imura at ryu16 dot org
Idea from: NetBSD (via bde)
Approved by: re (scottl)
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/newvers.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index e98f463..1acd83b 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -85,8 +85,7 @@ v=`cat version` u=${USER:-root} d=`pwd` h=${HOSTNAME:-`hostname`} t=`date` i=`${MAKE:-make} -V KERN_IDENT` cat << EOF > vers.c $COPYRIGHT -char sccspad[32 - 4 /* sizeof(sccs) */] = { '\\0' }; -char sccs[4] = { '@', '(', '#', ')' }; +char sccs[] = "@(#)${VERSION} #${v}: ${t}"; char version[] = "${VERSION} #${v}: ${t}\\n ${u}@${h}:${d}\\n"; char ostype[] = "${TYPE}"; char osrelease[] = "${RELEASE}"; |