From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 20 11:00:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BB80BAF7 for ; Fri, 20 Dec 2013 11:00:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7DAF61798 for ; Fri, 20 Dec 2013 11:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBKB00Hv004801 for ; Fri, 20 Dec 2013 11:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBKB00aU004800; Fri, 20 Dec 2013 11:00:00 GMT (envelope-from gnats) Resent-Date: Fri, 20 Dec 2013 11:00:00 GMT Resent-Message-Id: <201312201100.rBKB00aU004800@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John P Hartmann Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3C04C91D for ; Fri, 20 Dec 2013 10:56:55 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 28F84177B for ; Fri, 20 Dec 2013 10:56:55 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rBKAushh084627 for ; Fri, 20 Dec 2013 10:56:54 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rBKAus0J084617; Fri, 20 Dec 2013 10:56:54 GMT (envelope-from nobody) Message-Id: <201312201056.rBKAus0J084617@oldred.freebsd.org> Date: Fri, 20 Dec 2013 10:56:54 GMT From: John P Hartmann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/185022: ls /dev/tun creates tun interface X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2013 11:00:00 -0000 >Number: 185022 >Category: kern >Synopsis: ls /dev/tun creates tun interface >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 20 11:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: John P Hartmann >Release: 9.1 >Organization: Self >Environment: [root@fb91 ~]# uname -a FreeBSD fb91.jphartmann.net 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:34:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: [root@fb91 ~]# ls -l /dev/tun* crw------- 1 uucp dialer 0, 128 Dec 20 11:42 /dev/tun0 crw------- 1 uucp dialer 0, 129 Dec 20 11:43 /dev/tun1 [root@fb91 ~]# ls -l /dev/tun2 crw------- 1 uucp dialer 0, 130 Dec 20 11:45 /dev/tun2 [root@fb91 ~]# ls -l /dev/tun* crw------- 1 uucp dialer 0, 128 Dec 20 11:42 /dev/tun0 crw------- 1 uucp dialer 0, 129 Dec 20 11:43 /dev/tun1 crw------- 1 uucp dialer 0, 130 Dec 20 11:45 /dev/tun2 [root@fb91 ~]# ifconfig -l em0 lo0 tun0 tun1 tun2 >How-To-Repeat: Assuming there is no /dev/tun9 ls /dev/tun9 or stat /dev/tun9 ls /dev/tun creates the next sequential device. >Fix: >Release-Note: >Audit-Trail: >Unformatted: