Commit ffa0e4a0 authored by ben's avatar ben

Fixed possible bug in remote device file handling


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@15 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent f900911d
......@@ -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):
......
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment