Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2012 17:08:49 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        cliftonr@volcano.org
Cc:        freebsd-stable@freebsd.org
Subject:   Re: GENERIC make buildkernel error / fails - posix_fadvise
Message-ID:  <4F1CB321.50403@FreeBSD.org>
In-Reply-To: <74dee0a775b93db4771f4de96eaf86c2@volcano.org>
References:  <20120111161110.4258969c.rpclark@tds.net> <CAN-pd=cPY=Eg1RintaBx6GAon3FsLm-X0h6yvSBxzq=EZ5ukbg@mail.gmail.com> <20120112200843.2a348d2f.rpclark@tds.net> <4F0F8E6F.8000909@FreeBSD.org> <74dee0a775b93db4771f4de96eaf86c2@volcano.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/22/2012 11:00, cliftonr@volcano.org wrote:
> On 12.01.2012 15:52, Doug Barton wrote:
>>>> chflags -R noschg /usr/obj/usr
>>>> rm -rf /usr/obj/usr
>>
>> It's much faster to do:
>>
>> /bin/rm -rf ${obj}/* 2> /dev/null || /bin/chflags -R 0 ${obj}/* &&
>> /bin/rm -rf ${obj}/*
> 
> If I could just add one thing here, for those who might be tempted
> to immediately cut and paste that elegant command line:
> 
> Consider, how does that command evaluate if the shell variable "obj"
> is not set, and you're running that literal string as root?

It wasn't intended that anyone actually do what you're considering. I
assumed that our users are smart enough to know that they have to
substitute the actual value of /usr/obj.


Doug

-- 

	It's always a long day; 86400 doesn't fit into a short.

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/




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