diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-03-21 08:43:16 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-03-21 08:43:16 +0000 |
commit | 68c8927cba32549f089a2732704ef1babbfe9927 (patch) | |
tree | afa5a88346dd619bf9280759a4404cff7e67a4f1 | |
parent | 6456959c9a4326e13efe49bf8bcf5f8458790496 (diff) | |
download | rdiff-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
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 3 | ||||
-rw-r--r-- | rdiff-backup/src/rpath.py | 3 |
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): |