summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-03-21 08:41:26 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-03-21 08:41:26 +0000
commit178141703dba8dfa351df7e6294112c952bd9338 (patch)
tree97f607db490045fa19944a6a6f14bfca42e81592 /rdiff-backup/rdiff_backup
parentb58bc5e8e956395c3ff541317f9cce5d5c11e1ba (diff)
downloadrdiff-backup-178141703dba8dfa351df7e6294112c952bd9338.tar.gz
updating now that default is preserve hardlinks
fixed possible bug in remote device file handling git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@13 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index 6f81347..3f26ade 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/rpath.py
@@ -487,11 +487,10 @@ class RPath(RORPath):
def _getdevnums(self):
"""Return tuple for special file (major, minor)"""
- assert self.conn is Globals.local_connection
if Globals.exclude_device_files:
# No point in finding numbers because it will be excluded anyway
return ()
- s = os.lstat(self.path).st_rdev
+ s = self.conn.reval("lambda path: os.lstat(path).st_rdev", self.path)
return (s >> 8, s & 0xff)
def chmod(self, permissions):