summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/metadata.py
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-06-14 18:17:57 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-06-14 18:17:57 +0000
commit79ddd7871a7237ff63cbaf076339e44bf502ee1f (patch)
treeedb2a22cbd257c5151015b61c2e5c8cc822cfc3b /rdiff-backup/rdiff_backup/metadata.py
parentc4ecd2ca8b35800a61b724a784394fb828bbc11e (diff)
downloadrdiff-backup-79ddd7871a7237ff63cbaf076339e44bf502ee1f.tar.gz
We should preserve hardlinks even when the destination file system does
not support them. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@896 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/metadata.py')
-rw-r--r--rdiff-backup/rdiff_backup/metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/metadata.py b/rdiff-backup/rdiff_backup/metadata.py
index b830a2e..c20092b 100644
--- a/rdiff-backup/rdiff_backup/metadata.py
+++ b/rdiff-backup/rdiff_backup/metadata.py
@@ -116,7 +116,7 @@ def RORP2Record(rorpath):
str_list.append(" CarbonFile %s\n" % (cfile,))
# If file is hardlinked, add that information
- if Globals.preserve_hardlinks:
+ if Globals.preserve_hardlinks != 0:
numlinks = rorpath.getnumlinks()
if numlinks > 1:
str_list.append(" NumHardLinks %s\n" % numlinks)