From 2523f635902c1b1743e4cd1ca9c7d84b95bcc692 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 1 Jul 2005 15:43:09 +0000 Subject: 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 --- sys/conf/newvers.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/conf/newvers.sh') 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}"; -- cgit v1.1