Commit 8739633b authored by owsla's avatar owsla

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@909 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 2d5320ae
New in v1.1.17 (????/??/??)
---------------------------
Properly handle uid/gid comparison when the metadata about a destination
file has become corrupt. Closes Debian bug #410586. (Andrew Ferguson)
Properly handle hardlink comparison when the metadata about a destination
hardlink has become corrupt. Closes Debian bug #486653. (Andrew Ferguson)
......
......@@ -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
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
......
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