From 68c8927cba32549f089a2732704ef1babbfe9927 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 21 Mar 2002 08:43:16 +0000 Subject: 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 --- rdiff-backup/src/rpath.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rdiff-backup/src/rpath.py') 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): -- cgit v1.2.1