summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2009-01-31 19:00:50 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2009-01-31 19:00:50 +0000
commit161a115e38145fb2cea9fcdd75710df3a7ccc3c7 (patch)
treedb88f19908e5b7017495079d34730df6171eef04
parentfebf5eea480a20efb664520a867714e484eb2772 (diff)
downloadrdiff-backup-161a115e38145fb2cea9fcdd75710df3a7ccc3c7.tar.gz
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
-rw-r--r--rdiff-backup/CHANGELOG3
-rw-r--r--rdiff-backup/rdiff_backup/fs_abilities.py3
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)