From owner-freebsd-bugs Tue Jan 9 08:40:17 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA20474 for bugs-outgoing; Tue, 9 Jan 1996 08:40:17 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA20440 Tue, 9 Jan 1996 08:40:09 -0800 (PST) Resent-Date: Tue, 9 Jan 1996 08:40:09 -0800 (PST) Resent-Message-Id: <199601091640.IAA20440@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, rjk@grauel.com Received: from public.wintek.com (public.wintek.com [199.233.104.88]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA20034 for ; Tue, 9 Jan 1996 08:32:36 -0800 (PST) Received: from watson.grauel.com (watson.grauel.com [199.233.104.36]) by public.wintek.com (8.6.12/1.15wintek(3.6davy)) with ESMTP id LAA09708; Tue, 9 Jan 1996 11:32:24 -0500 Received: (from rjk@localhost) by watson.grauel.com (8.6.12/8.6.9) id LAA02838; Tue, 9 Jan 1996 11:41:33 -0500 Message-Id: <199601091641.LAA02838@watson.grauel.com> Date: Tue, 9 Jan 1996 11:41:33 -0500 From: Richard J Kuhns Reply-To: rjk@grauel.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/941: problem with pkg_create under 2.1-RELEASE Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 941 >Category: bin >Synopsis: pkg_create removes current directory if interupted >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 9 08:40:04 PST 1996 >Last-Modified: >Originator: Richard J Kuhns >Organization: Grauel Enterprises, Inc. PO Box 6249 100 Sawmill Road Lafayette, IN 47903 (317)477-6000 x319 >Release: FreeBSD 2.1-STABLE i386 >Environment: A 2.1-RELEASE system updated from 2.0.5. >Description: Interupting pkg_create while it was creating the tarball apparently removed the current directory. I used the following script to run pkg_create: === #!/usr/local/bin/bash BUILDDATE=`date +%m%d%Y` rm -f /u/store/BUILD echo $BUILDDATE > /u/store/BUILD pkg_create -v -f +CONTENTS -c +COMMENT -d +DESC -i +INSTALL -r +REQUIRE StoreSys exit 0 === I hit control-c when I saw the error message from tar (see below); I *didn't* wait for the command to finish. ==========transcript : watson$~; cd Storesys/ : watson$~/Storesys; ./build_store_pkg Creating package StoreSys Creating gzip'd tar ball in '/home/rjk/Storesys/StoreSys.tgz' tar: can't add file bin/servout : No such file or directory ***^C*** tar command failed with code 2 : watson$~/Storesys; ls -CF ls: .: No such file or directory : watson$~/Storesys; cd .. : watson$~; cd - bash: -: No such file or directory : watson$~; ========== >How-To-Repeat: See the short files included with the description above... I tried a second time, after restoring from a backup; it's repeatable. >Fix: ??? >Audit-Trail: >Unformatted: