From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 11 12:50:16 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3062B16A4D0 for ; Wed, 11 Feb 2004 12:50:16 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1570E43D2F for ; Wed, 11 Feb 2004 12:50:16 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i1BKoFbv032904 for ; Wed, 11 Feb 2004 12:50:15 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i1BKoF4i032901; Wed, 11 Feb 2004 12:50:15 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 11 Feb 2004 12:50:15 -0800 (PST) Resent-Message-Id: <200402112050.i1BKoF4i032901@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Scott Anderson Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D724D16A4CE for ; Wed, 11 Feb 2004 12:47:01 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D388B43D41 for ; Wed, 11 Feb 2004 12:47:01 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i1BKl172005535 for ; Wed, 11 Feb 2004 12:47:01 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i1BKl1dl005534; Wed, 11 Feb 2004 12:47:01 -0800 (PST) (envelope-from nobody) Message-Id: <200402112047.i1BKl1dl005534@www.freebsd.org> Date: Wed, 11 Feb 2004 12:47:01 -0800 (PST) From: Scott Anderson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.0 Subject: misc/62702: backup of /etc and /root durning sysinstall upgrade can loop if user backs up /etc in /root tree X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2004 20:50:16 -0000 >Number: 62702 >Category: misc >Synopsis: backup of /etc and /root durning sysinstall upgrade can loop if user backs up /etc in /root tree >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 11 12:50:15 PST 2004 >Closed-Date: >Last-Modified: >Originator: Scott Anderson >Release: 4.5-RELEASE >Organization: >Environment: FreeBSD 4.5-RELEASE FreeBSD 4.5-RELEASE #4: Wed Feb 6 20:11:53 GMT 2002 root@:/usr/src/sys/compile/MUNKEY i386 >Description: While attempting an upgrade (using '/stand/sysinstall installUpgrade') I ran into a problem where files are copied, hit a recursive loop and potentially continue being copied until the partition is full. When upgrading via sysinstall, the user (admin) is prompted for a location to backup /etc, if the user backs this up in the /root tree, this problem will be encountered. Selecting /root doesn't seem like a bad place, and the user isn't warned the next automatic step is that /root will be backed up into the backup of /etc (thus creating the loop). A simple prompt not to backup /etc into the /root tree would suffice, or preventing this in the script might be helpful. >How-To-Repeat: '/stand/sysinstall installUpgrade' Choose to backup /etc into /root (/root/backup/etc or some such) Watch it take a long,long time to backup, wonder what is going on,go have a look in /root/backup/etc and find the huge recursive copy happening (/root/backup/etc/root/backup/etc/root/backup/etc...). :) >Fix: >Release-Note: >Audit-Trail: >Unformatted: