Date: Sat, 1 Feb 1997 05:11:20 +1100 (EST) From: Julian Assange <proff@iq.org> To: FreeBSD-gnats-submit@freebsd.org, dyson@freebsd.org Subject: misc/2629: <Synopsis of the problem (one line)> vnode_if.h has no protection against multiple reference Message-ID: <199701311811.FAA02678@profane.iq.org> Resent-Message-ID: <199701311820.KAA04877@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 2629 >Category: misc >Synopsis: vnode_if.h has no protection against multiple reference >Confidential: yes >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 31 10:20:01 PST 1997 >Last-Modified: >Originator: Julian Assange >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: vnode_if.h is generated during the make phase by sys/kern/vnode_if.sh. due to the lack of #ifdef _VNODE_IF_H etc, nasty things happen if vnode_if.h is multiply referenced. >How-To-Repeat: >Fix: cd to sys/kern and apply patch. re-config kernel. Index: vnode_if.sh =================================================================== RCS file: /usr/src/cvs/src/sys/kern/vnode_if.sh,v retrieving revision 1.10 diff -u -r1.10 vnode_if.sh --- vnode_if.sh 1997/01/14 06:44:32 1.10 +++ vnode_if.sh 1997/01/31 16:33:57 @@ -70,6 +70,9 @@ * Created from @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93 */ +#ifndef _VNODE_IF_H +#define _VNODE_IF_H + extern struct vnodeop_desc vop_default_desc; END_OF_LEADING_COMMENT @@ -397,6 +400,7 @@ a.a_bp = bp; return (VCALL((bp)->b_vp, VOFFSET(vop_bwrite), &a)); } +#endif /* !_VNODE_IF_H */ END_OF_SPECIAL_CASES cat << END_OF_SPECIAL_CASES >> $CFILE >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701311811.FAA02678>