summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/fs_abilities.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-10-25 06:44:45 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-10-25 06:44:45 +0000
commite45477d9b5f0e1aa8ffdb9f5853abcd979f08a3a (patch)
tree35d01d9cc6677972d5d85f56ef588058c4baf99d /rdiff-backup/rdiff_backup/fs_abilities.py
parentf1b52b28ced38c2560e6682f2851e3db6e101945 (diff)
downloadrdiff-backup-e45477d9b5f0e1aa8ffdb9f5853abcd979f08a3a.tar.gz
Berryman's hard linking AFS patch
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@658 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/fs_abilities.py')
-rw-r--r--rdiff-backup/rdiff_backup/fs_abilities.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/fs_abilities.py b/rdiff-backup/rdiff_backup/fs_abilities.py
index 19c2d98..a94e5e4 100644
--- a/rdiff-backup/rdiff_backup/fs_abilities.py
+++ b/rdiff-backup/rdiff_backup/fs_abilities.py
@@ -164,7 +164,9 @@ class FSAbilities:
def set_hardlinks(self, testdir):
"""Set self.hardlinks to true iff hard linked files can be made"""
hl_source = testdir.append("hardlinked_file1")
- hl_dest = testdir.append("hardlinked_file2")
+ hl_dir = testdir.append("hl")
+ hl_dir.mkdir()
+ hl_dest = hl_dir.append("hardlinked_file2")
hl_source.touch()
try:
hl_dest.hardlink(hl_source.path)