From owner-freebsd-current Sat Dec 9 22:03:11 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA00441 for current-outgoing; Sat, 9 Dec 1995 22:03:11 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id WAA00316 for ; Sat, 9 Dec 1995 22:02:57 -0800 (PST) Received: from hub.org (hub.org [199.166.238.138]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id UAA01846 for ; Sat, 9 Dec 1995 20:02:41 -0800 Received: (from scrappy@localhost) by hub.org (8.7.1/8.7.1) id XAA14565; Sat, 9 Dec 1995 23:02:19 -0500 (EST) Date: Sat, 9 Dec 1995 23:02:14 -0500 (EST) From: "Marc G. Fournier" To: current@freebsd.org Subject: [CRITICAL] patch for /usr/src/sys/net/if_tun.c Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org Precedence: bulk Hi... The string 'name' isn't defined in /usr/src/sys/net/if_tun.c. since it is being used in: #ifdef DEVFS sprintf(name, "tun%d", i ); tun_devfs_token[i] = devfs_add_devsw( "/", name, &tun_cdevsw , i, DV_CHR, 0, 0, 0600); #endif The following patch makes the assumption (this is my first attempt at doing *anything* in the kernel) that tun will never become tun9999 and declares name as being an 8 character string. *** net/if_tun.c.orig Sat Dec 9 22:55:56 1995 --- net/if_tun.c Sat Dec 9 22:58:10 1995 *************** *** 108,113 **** --- 108,116 ---- register int i; struct ifnet *ifp; dev_t dev; + #ifdef DEVFS + char name[8]; + #endif if( tun_devsw_installed ) return; dev = makedev(CDEV_MAJOR, 0); Marc G. Fournier | POP Mail Telnet Acct DNS Hosting scrappy@hub.org | WWW Services Database Services | Knowledge, soon to be: | | Information and scrappy@ki.net | WWW: http://hub.org | Communications, Inc