From nemesis!uhclem@fw.ast.com Sat Apr 8 23:19:52 1995 Received: from relay1.UU.NET (relay1.UU.NET [192.48.96.5]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id XAA05864 for ; Sat, 8 Apr 1995 23:19:50 -0700 Received: from ast.com by relay1.UU.NET with SMTP id QQykrh27174; Sun, 9 Apr 1995 02:19:44 -0400 Received: from trsvax.fw.ast.com (fw.ast.com) by ast.com with SMTP id AA03869 (5.67b/IDA-1.5 for uunet!freebsd.org!FreeBSD-gnats-submit); Sat, 8 Apr 1995 23:23:50 -0700 Received: by trsvax.fw.ast.com (/\=-/\ Smail3.1.18.1 #18.1) id ; Sun, 9 Apr 95 01:15 CDT Received: by nemesis.lonestar.org (Smail3.1.27.1 #18) id m0rxq85-0004voC; Sun, 9 Apr 95 01:05 CDT Message-Id: Date: Sun, 9 Apr 95 01:05 CDT From: uhclem%nemesis@fw.ast.com Reply-To: uhclem%nemesis@fw.ast.com To: FreeBSD-gnats-submit@freebsd.org Cc: uhclem@nemesis.lonestar.org Subject: Do-it-yourself FTP deletes /usr/tmp dir rather than contents X-Send-Pr-Version: 3.2 >Number: 309 >Category: bin >Synopsis: Do-it-yourself FTP deletes /usr/tmp dir rather than contents >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 8 23:20:02 1995 >Closed-Date: Sat Jun 24 08:40:07 PDT 1995 >Last-Modified: >Originator: Frank Durda IV >Release: FreeBSD 2.0.0-SNAP950322 i386 >Organization: >Environment: Occurs in SNAP-021095 Still occurs in SNAP-032295 >Description: [FDIV002] During installation, if you specify that you want to do your own FTP commands and have specified more than one distribution (bin, src, etc), FTP is invoked repeatedly to download each module separately. After processing each module, the installation procedure asks if you want to delete the files in /usr/tmp. If you answer this "yes", the installation procedure apparently does a "rm -rf /usr/tmp" (or the equivalent) and when the installation procedure moves on to load the next module, it can't because /usr/tmp is now deleted and the installation is unable to proceed. You get the message "No such file or directory for /usr/tmp, sorry! Please fix this and try" The rest of the message is cut off and the box and shading gets messed-up, probably because the message is too long. Of course, there is no way to fix this since you can't get a shell. If you do a ^Z, it causes the installation process to panic and reboot as does ^C. If there is a way to get to a shell to fix this the now-missing directory, it isn't obvious. This did not happen in 2.0, and I suspect it has to do with the new ability to select multiple modules and something is not re-creating the directory if you answer the above question "yes" or the method used to delete the files in /usr/tmp is too aggressive. In my case, the test system was tight on disk space and could not afford to have the packed distribution hanging around after it was extracted. I was able to get around this on a tight disk space system by answering "No", and once in FTP, !-out to a shell and remove the files in /usr/tmp manually, then resume FTP and download the next batch of files. But this is clumsy, and would not have been possible until after the "bin" distribution was loaded. See FDIV001 for related problems. >How-To-Repeat: Perform an installation and select do-it-yourself FTP downloads and request more than one distribution. After bin is downloaded and you are asked if you want to delete the files in /usr/tmp, answer "Yes". >Fix: Verify that /usr/tmp (or the directory that the user specifies) either does not get deleted or make sure it gets recreated with the same permissions after each module is downloaded and the directory contents removed. By the way, if the user specifies a different directory, the installation process should create it. This doesn't seem to happen if you select something other than /usr/tmp in the first place. Probably /usr/tmp is already there so there is no problem with using it the first time. *END* >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: jkh State-Changed-When: Sat Jun 24 08:40:07 PDT 1995 State-Changed-Why: old install program. >Unformatted: