From 161a115e38145fb2cea9fcdd75710df3a7ccc3c7 Mon Sep 17 00:00:00 2001 From: owsla Date: Sat, 31 Jan 2009 19:00:50 +0000 Subject: Disable hardlinks by default on Windows when using --compare, etc. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@1020 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/CHANGELOG | 3 +++ rdiff-backup/rdiff_backup/fs_abilities.py | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index 04ccdb6..c5bed0d 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -1,6 +1,9 @@ New in v1.3.2 (????/??/??) --------------------------- +Disable hardlinks by default on Windows when performing operations such as +--compare, etc. Thanks to Ryan for the bug report. (Andrew Ferguson) + Change --min-file-size and --max-file-size to agree with man page. These options no longer include files, and will only apply to regular files. Thanks to Johannes Jensen for the suggestion. (Andrew Ferguson) diff --git a/rdiff-backup/rdiff_backup/fs_abilities.py b/rdiff-backup/rdiff_backup/fs_abilities.py index 4da53ba..3ecb8ed 100644 --- a/rdiff-backup/rdiff_backup/fs_abilities.py +++ b/rdiff-backup/rdiff_backup/fs_abilities.py @@ -646,8 +646,7 @@ def get_readonly_fsa(desc_string, rp): the security module. """ - if os.name == 'nt' and (desc_string == 'source' or - desc_string == 'rdiff-backup repository'): + if os.name == 'nt': log.Log("Hardlinks disabled by default on Windows", 4) Globals.set('preserve_hardlinks', 0) return FSAbilities(desc_string).init_readonly(rp) -- cgit v1.2.1