Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 May 1998 11:37:44 -0500
From:      Jacques Vidrine <n@nectar.com>
To:        Eivind Eklund <eivind@yes.no>
Cc:        "Ron G. Minnich" <rminnich@Sarnoff.COM>, hackers@FreeBSD.ORG
Subject:   Re: an interesting problem with pkg_add 
Message-ID:  <199805051637.LAA22477@cerebus.nectar.com>
In-Reply-To: <19980505165123.20240@follo.net> 
References:  <Pine.SUN.3.91.980505100932.18355D-100000@terra> <19980505165123.20240@follo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----



Just FYI, FWIW.

This has bitten me in the past.

I'd start a pkg_add, forgetting to be root first.  Upon realizing I was not 
root, I hit ^C.

Boom, no more home directory.  Apparently, rm -rf * in your current working
directory.

After two times, I've not ^C'd pkg_add ever again.  

This was in the 2.1.5 - 2.2-GAMMA timeframe that I saw the behavior.

Jacques Vidrine <n@nectar.com> 

On 5 May 1998 at 16:51, Eivind Eklund <eivind@yes.no> wrote:
> On Tue, May 05, 1998 at 10:13:14AM -0400, Ron G. Minnich wrote:
> > Here you go: I ran the following:
> > pkg_add -f ftp://ftp.freebsd.org/pub/FreeBSD/CVSup/cvsupit.tgz
> > 
> > Then I ^C because as usual our network connection got awful. 
> > 
> > As i write this, there is an rm -r running on /. I am losing my system. 
> > I'm going to let it go because it got too far before I caught it, the 
> 
> I'm assuming you mean that an 'rm -rf' is going on your system?
> Otherwise, I can't see anywhere where it could have come from pkg_add.
> 
> > It will be interesting to see how long this machine lasts with this rm 
> > running :-)
> > 
> > anyway I think this indicates a bug in pkg_add :-) 
> 
> I'd guess it does.  Sounds like the PenLocation variable of pkg_add
> has been garbled somehow - this can (theoretically) happen if your
> quit-signal comes while the filename is being copied into that
> variable.
> 
> This probably mean we should add some locking here - but I don't know
> how easy it will be to do.
> 
> > Eating all of one's hard disk is hardly a good thing. Guess I'll run 
> > linux on this machine for a while, til i get over the shock.
> 
> Eating filesystems for breakfast is very bad program behaviour.  BAAD
> program.  Go sit in the corner the next two hours ;-)
> 
> Actually, I guess it was lucky you were the one that was caught by
> this - if I've understood correctly, you have good
> error-recoverability.  It would probably have been more of a disaster
> for a random user.
> 
> Eivind.
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 



-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNU9AWDeRhT8JRySpAQFxNgP+NsxnOecpfODodbzQ9vvDn6xYaSxEjHwN
+8zxUsXQ285vZfZ4Ql+HhhGzvNPKzpBrhe8Jjf4C+i2UF61X8Noue1oWkmUQkxT8
9OK/poDm2OAIm55AkqyLqHy86nj24/FuaymtTUbwBEr4o9gA8SgBJFXi5Ngps/xf
6MbVTSuOT0A=
=EFdo
-----END PGP SIGNATURE-----


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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