From owner-freebsd-bugs Thu Jun 27 0:20:18 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 709B537B407 for ; Thu, 27 Jun 2002 00:20:03 -0700 (PDT) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g5R7K3JU062760 for ; Thu, 27 Jun 2002 00:20:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g5R7K3rb062759; Thu, 27 Jun 2002 00:20:03 -0700 (PDT) Date: Thu, 27 Jun 2002 00:20:03 -0700 (PDT) Message-Id: <200206270720.g5R7K3rb062759@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Crist J. Clark" Subject: Re: bin/39849: /sbin/restore fails to overwrite files with schg flag set Reply-To: "Crist J. Clark" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/39849; it has been noted by GNATS. From: "Crist J. Clark" To: "Michael C. Adler" Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/39849: /sbin/restore fails to overwrite files with schg flag set Date: Thu, 27 Jun 2002 00:15:41 -0700 On Tue, Jun 25, 2002 at 01:24:31PM -0400, Michael C. Adler wrote: [snip] > Incremental restore fails to overwrite an older file that has a flag > set making the file immutable. I really think this is a feature and not a bug. However, I can see where one might want this. I think the right way would be to have a command line switch which enables this [su]chg-flag clobbering, and leave the default as-is. Note that there are other, tougher issues when doing restores on an existing filesystem when names collide (e.g. does restore(8) over-write an existing directory with a plain file from backup?). Handling this issue by running a, # chflags -R 0 /filesystem/path Before a restore(8) is fairly trivial. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message