diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-07-05 19:04:44 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-07-05 19:04:44 +0000 |
commit | a09b3da119ee795d91436049bf0c75701d07aaa7 (patch) | |
tree | 11db341df2360efcdb9cd1043d84399226c18b16 /rdiff-backup/rdiff_backup | |
parent | cb67046728b09d2f9e36ce106f82524b10bf3e3a (diff) | |
download | rdiff-backup-a09b3da119ee795d91436049bf0c75701d07aaa7.tar.gz |
Properly handle uid/gid comparison when the metadata about a destination
file has become corrupt. Closes Debian bug #410586.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@909 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index 8871f47..2ee7043 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -412,7 +412,10 @@ class RORPath: if self.lstat() and not self.issym() and Globals.change_ownership: # Now compare ownership. Symlinks don't have ownership - if user_group.map_rpath(self) != other.getuidgid(): return 0 + try: + if user_group.map_rpath(self) != other.getuidgid(): return 0 + except KeyError: + return 0 # uid/gid might be missing if metadata file is corrupt return 1 |