Commit 2dd87bf2 authored by bescoto's avatar bescoto

Carbonfile now defaults to off


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@635 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 6d1f928d
...@@ -7,6 +7,12 @@ caused a spurious security violation. (Important for Mac OS X) ...@@ -7,6 +7,12 @@ caused a spurious security violation. (Important for Mac OS X)
An error reading carbonfile data on Mac OS X should no longer cause a An error reading carbonfile data on Mac OS X should no longer cause a
crash. (Thanks to Kevin Horton for testing.) crash. (Thanks to Kevin Horton for testing.)
Carbonfile support now defaults to off, even if the system appears to
support it. It can be manually enabled with the --carbonfile switch.
If you know something about Mac OS X and want to look at the
carbonfile code so it can be re-enabled by default, please do so :)
(help available from list)
New in v1.0.1 (2005/09/10) New in v1.0.1 (2005/09/10)
-------------------------- --------------------------
......
...@@ -87,7 +87,8 @@ resource_forks_write = None ...@@ -87,7 +87,8 @@ resource_forks_write = None
resource_forks_conn = None resource_forks_conn = None
# Like the above, but applies to MacOS Carbon Finder creator/type info. # Like the above, but applies to MacOS Carbon Finder creator/type info.
carbonfile_active = None # As of 1.0.2 this has defaulted to off because of bugs
carbonfile_active = 0
carbonfile_write = None carbonfile_write = None
carbonfile_conn = None carbonfile_conn = None
......
...@@ -84,6 +84,7 @@ def parse_cmdlineoptions(arglist): ...@@ -84,6 +84,7 @@ def parse_cmdlineoptions(arglist):
for opt, arg in optlist: for opt, arg in optlist:
if opt == "-b" or opt == "--backup-mode": action = "backup" if opt == "-b" or opt == "--backup-mode": action = "backup"
elif opt == "--calculate-average": action = "calculate-average" elif opt == "--calculate-average": action = "calculate-average"
elif opt == "--carbonfile": Globals.set("carbonfile_active", 1)
elif opt == "--check-destination-dir": action = "check-destination-dir" elif opt == "--check-destination-dir": action = "check-destination-dir"
elif opt == "--compare" or opt == "--compare-at-time": elif opt == "--compare" or opt == "--compare-at-time":
action = "compare" action = "compare"
...@@ -424,8 +425,13 @@ def backup_set_fs_globals(rpin, rpout): ...@@ -424,8 +425,13 @@ def backup_set_fs_globals(rpin, rpout):
update_triple(src_fsa.resource_forks, dest_fsa.resource_forks, update_triple(src_fsa.resource_forks, dest_fsa.resource_forks,
('resource_forks_active', 'resource_forks_write', ('resource_forks_active', 'resource_forks_write',
'resource_forks_conn')) 'resource_forks_conn'))
update_triple(src_fsa.carbonfile, dest_fsa.carbonfile, update_triple(src_fsa.carbonfile, dest_fsa.carbonfile,
('carbonfile_active', 'carbonfile_write', 'carbonfile_conn')) ('carbonfile_active', 'carbonfile_write', 'carbonfile_conn'))
if src_fsa.carbonfile and not Globals.carbonfile_active:
Log("Source may have carbonfile support, but support defaults to "
"off.\n Use --carbonfile to enable.", 5)
if Globals.never_drop_acls and not Globals.acls_active: if Globals.never_drop_acls and not Globals.acls_active:
Log.FatalError("--never-drop-acls specified, but ACL support\n" Log.FatalError("--never-drop-acls specified, but ACL support\n"
"disabled on destination filesystem") "disabled on destination filesystem")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment