Commit 5da414a6 authored by bescoto's avatar bescoto

Check all groups for permission


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@529 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent b2e75777
......@@ -10,6 +10,9 @@ Fix by Dean Gaudet for --calculate-average mode (it broke somewhere in
Fix for regress warning code: rdiff-backup should warn you if you are
trying to back up a directory into itself.
Now when determining group permissions check supplementary groups as
well as main group. (Bug report by Ryan Castle.)
New in v0.13.4 (2004/01/31)
---------------------------
......
......@@ -49,6 +49,7 @@ server = None
# vary depending on the connection.
process_uid = os.getuid()
process_gid = os.getgid()
process_groups = os.getgroups()
# If true, when copying attributes, also change target's uid/gid
change_ownership = None
......
......@@ -840,8 +840,8 @@ class RPath(RORPath):
return uid == 0 or uid == self.data['uid']
def isgroup(self):
"""Return true if current process is in group of rp"""
return self.conn.Globals.get('process_gid') == self.data['gid']
"""Return true if process has group of rp"""
return self.data['gid'] in self.conn.Globals.get('process_groups')
def delete(self):
"""Delete file at self.path. Recursively deletes directories."""
......
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