Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2002 00:20:03 -0700 (PDT)
From:      "Crist J. Clark" <crist.clark@attbi.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/39849: /sbin/restore fails to overwrite files with schg flag set
Message-ID:  <200206270720.g5R7K3rb062759@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/39849; it has been noted by GNATS.

From: "Crist J. Clark" <crist.clark@attbi.com>
To: "Michael C. Adler" <mad1@tapil.com>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206270720.g5R7K3rb062759>