'Set permissions on rel_path'

def _fix_permissions(self, rel_path):

    for (basedir, _, files) in os.walk(rel_path):
        umask_fix_perms(basedir, self.config.umask, 511, self.config.gid)
        for filename in files:
            path = os.path.join(basedir, filename)
            if os.path.islink(path):
                continue
            umask_fix_perms(path, self.config.umask, 438, self.config.gid)
