From nobody@FreeBSD.org  Wed Feb 11 12:47:01 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D724D16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <f00f00munkey@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: backup of /etc and /root durning sysinstall upgrade can loop if user backs up /etc in /root tree
X-Send-Pr-Version: www-2.0

>Number:         62702
>Category:       bin
>Synopsis:       sysinstall(8): backup of /etc and /root during sysinstall upgrade can loop if user backs up /etc in /root tree
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-sysinstall
>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:  Tue Jul 13 13:49:12 UTC 2010
>Originator:     Scott Anderson
>Release:        4.5-RELEASE
>Organization:
>Environment:
FreeBSD <host> 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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-qa 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Aug 29 05:27:05 GMT 2004 
Responsible-Changed-Why:  
sysinstall problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62702 
Responsible-Changed-From-To: freebsd-bugs->freebsd-sysinstall 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Tue Jul 13 13:49:11 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62702 
>Unformatted:
