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
This commit is contained in:
parent
453ad3b2c0
commit
e00515799d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147726
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user