From owner-freebsd-hackers@FreeBSD.ORG Mon May 17 10:20:15 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF0FA106566C for ; Mon, 17 May 2010 10:20:15 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 4B3BB8FC14 for ; Mon, 17 May 2010 10:20:14 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o4HAKBq0086581 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 May 2010 12:20:12 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o4HAK8wo024514 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 May 2010 12:20:08 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o4HAK8Kt013702; Mon, 17 May 2010 12:20:08 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o4HAK7Rc013701; Mon, 17 May 2010 12:20:07 +0200 (CEST) (envelope-from ticso) Date: Mon, 17 May 2010 12:20:07 +0200 From: Bernd Walter To: Tjado =?iso-8859-1?Q?M=E4cke?= Message-ID: <20100517102007.GQ92942@cicely7.cicely.de> References: <201005151225.o4FCPkl3056460@fire.js.berklix.net> <4BEEBE99.4050105@maecke.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4BEEBE99.4050105@maecke.net> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: freebsd-hackers@freebsd.org, "Julian H. Stacey" Subject: Re: /dev/null & zero inside chroot for make release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2010 10:20:15 -0000 On Sat, May 15, 2010 at 05:32:41PM +0200, Tjado Mäcke wrote: > > > Thanks for trying to help :-) But this is in Wrong. > > Line 4 on that page: > > Last updated: 2005-08-11 > > 5 years later, FreeBSD-8.0 has via ls -l /dev/null > > crw-rw-rw- 1 root wheel 0, 31 May 15 14:17 /dev/null > > so both major & minor numbers have changed, command now would be > > mknod dev/null c 0 31 > > which I already posted in my original Thu, 13 May 2010 19:44:58 +0200 > > as having tried, but not good enough. > > > > As I posted Fri, 14 May 2010 21:59:23 +0200 (but you may not have > > seen when you posted) > > > > > > Hm... i did this on 7.2 because chrooted scponly shell with WinSCP > support needs it. In this case it works... > But I'm wrong because the dev/null with my nod numbers doesn't work > correctly and WinSCP looks only if this file is there :D On my 7.0-stable I have: [192]cicely7> ls -al /dev/null crw-rw-rw- 1 root wheel 0, 14 May 17 12:11 /dev/null You may very well have you HDD under 2,2 and having any innocent program writing it's output to it... Fortunately it takes many devnodes until 2,2 is getting used. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.