Subject: Re: pkg_add nuked my system and I'm going nuts
To: Hubert Feyrer <hubert.feyrer@rrzc1.rz.uni-regensburg.de>
From: David Brownlee <abs@anim.dreamworks.com>
List: tech-pkg
Date: 07/07/1998 15:43:31
	Can we put a check in to call abort() if this happens?

	Something of a bandaid - but avoiding this is pretty close to
	critical....

		David/absolute

	 -=-  "There will not be a send-off, a funeral or mass"  -=-

On Wed, 8 Jul 1998, Hubert Feyrer wrote:

> On Tue, 7 Jul 1998, Anders "ali" Lindgren wrote:
> > What pkg_add was doing was this (as root):
> > rm -rf /
> 
> This happened in pkg_tools/lib/pen.c's leave_playpen() function, the 
> "Current" variable there obviously gets set to "/" somehow.
> 
> Maybe someone can debug why/how it gets so far...
> (yes, of course this is some kind of race condition, but ...)
> 
> 
>  - Hubert
> 
> --
> Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
>