Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2010 12:20:07 +0200
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        Tjado =?iso-8859-1?Q?M=E4cke?= <tjado.ml.freebsd-hackers@maecke.net>
Cc:        freebsd-hackers@freebsd.org, "Julian H. Stacey" <jhs@berklix.com>
Subject:   Re: /dev/null & zero inside chroot for make release
Message-ID:  <20100517102007.GQ92942@cicely7.cicely.de>
In-Reply-To: <4BEEBE99.4050105@maecke.net>
References:  <201005151225.o4FCPkl3056460@fire.js.berklix.net> <4BEEBE99.4050105@maecke.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100517102007.GQ92942>