From d@scry.dstc.edu.au  Sun Sep 22 00:09:15 1996
Received: from trapdoor.dstc.edu.au (root@trapdoor.dstc.edu.au [130.102.176.12])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA05420
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Sep 1996 00:09:13 -0700 (PDT)
Received: from scry.dstc.edu.au (scry.dstc.edu.au [130.102.176.222]) by trapdoor.dstc.edu.au (8.6.9/8.6.12) with ESMTP id RAA28798 for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Sep 1996 17:09:06 +1000
Received: (from d@localhost) by scry.dstc.edu.au (8.7.5/8.6.12) id RAA01879; Sun, 22 Sep 1996 17:09:04 +1000 (EST)
Message-Id: <199609220709.RAA01879@scry.dstc.edu.au>
Date: Sun, 22 Sep 1996 17:09:04 +1000 (EST)
From: David Leonard <d@scry.dstc.edu.au>
Reply-To: leonard@dstc.edu.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: typing control-C in pkg_add deletes current directory
X-Send-Pr-Version: 3.2

>Number:         1662
>Category:       bin
>Synopsis:       typing control-C in pkg_add deletes current directory
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    jkh
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 22 00:10:01 PDT 1996
>Closed-Date:    Mon Oct 14 12:41:50 PDT 1996
>Last-Modified:  Mon Oct 14 12:45:25 PDT 1996
>Originator:     David Leonard
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
DSTC, Brisbane, Australia  +61 7 3365 4310
>Environment:

-r-xr-xr-x  1 bin  bin  40960 Sep  8 23:31 /usr/sbin/pkg_add

>Description:

	typing control-C just after pkg_add starts causes it to
	remove the current directory. which really sucked because
	i had done about 8 hours work for a thesis due tomorrow!!! argh!

>How-To-Repeat:

565:scry:k_disam$ pkg_add ftp://ledge.dstc.edu.au/pub/freebsd/packages/All/emacs-19.31.tgz
^CSignal 2 received, cleaning up..
^CUnable to open table of contents file `+CONTENTS' - not a package?
566:scry:k_diasm$ ls
ls: .: No such file or directory

and yep - it was gone

>Fix:
	
suicide

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: gpalmer 
Responsible-Changed-When: Sun Sep 22 00:23:23 PDT 1996 
Responsible-Changed-Why:  
Jordan does pkg_add maintenance 

From: "Jordan K. Hubbard" <jkh@time.cdrom.com>
To: leonard@dstc.edu.au
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/1662: typing control-C in pkg_add deletes current directory 
Date: Sun, 22 Sep 1996 01:33:41 -0700

 Yikes!  I thought this particular brand of evil was dispatched back
 before 2.1.5, but if you say it's still in -current then I'll
 definitely look again!
 
 						Jordan
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Mon Oct 14 12:41:50 PDT 1996 
State-Changed-Why:  
I believe I fixed this a month or so back, though just to check again I 
sat in a temp directory for about 10 minutes whapping ^C during a package 
add and could not reproduce the failure.  If you lose another thesis, 
let me know and I'll reopen the bug report. :-) 
>Unformatted:
