summaryrefslogtreecommitdiff
path: root/rdiff-backup
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-03-21 08:43:16 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-03-21 08:43:16 +0000
commit68c8927cba32549f089a2732704ef1babbfe9927 (patch)
treeafa5a88346dd619bf9280759a4404cff7e67a4f1 /rdiff-backup
parent6456959c9a4326e13efe49bf8bcf5f8458790496 (diff)
downloadrdiff-backup-68c8927cba32549f089a2732704ef1babbfe9927.tar.gz
Fixed possible bug in remote device file handling
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-6@15 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup')
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py3
-rw-r--r--rdiff-backup/src/rpath.py3
2 files changed, 2 insertions, 4 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index 4e6cc8f..423992b 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/rpath.py
@@ -471,11 +471,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):
diff --git a/rdiff-backup/src/rpath.py b/rdiff-backup/src/rpath.py
index 4e6cc8f..423992b 100644
--- a/rdiff-backup/src/rpath.py
+++ b/rdiff-backup/src/rpath.py
@@ -471,11 +471,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):