From owner-freebsd-hackers Tue May 5 09:38:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA16020 for freebsd-hackers-outgoing; Tue, 5 May 1998 09:38:31 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cerebus.nectar.com (cerebus.nectar.com [204.27.67.90]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA15994 for ; Tue, 5 May 1998 09:38:06 -0700 (PDT) (envelope-from nectar@cerebus.nectar.com) Received: from cerebus.nectar.com (localhost.communique.net [127.0.0.1]) by cerebus.nectar.com (8.8.8/8.8.8) with ESMTP id LAA22477; Tue, 5 May 1998 11:37:45 -0500 (CDT) Message-Id: <199805051637.LAA22477@cerebus.nectar.com> X-Mailer: exmh version 2.0.2 2/24/98 X-Pgp-Rsafprint: 00 F9 E6 A2 C5 4D 0A 76 26 8B 8B 57 73 D0 DE EE X-Pgp-Rsakey: http://pgp.ai.mit.edu:11371/pks/lookup?op=get&search=0x094724A9 From: Jacques Vidrine To: Eivind Eklund Cc: "Ron G. Minnich" , hackers@FreeBSD.ORG In-Reply-To: <19980505165123.20240@follo.net> References: <19980505165123.20240@follo.net> Subject: Re: an interesting problem with pkg_add Date: Tue, 05 May 1998 11:37:44 -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----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 On 5 May 1998 at 16:51, Eivind Eklund 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