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