From: Wayne Davison Date: Mon, 13 Mar 2006 01:03:51 +0000 (+0000) Subject: Fixed a problem in the computing of a missing mask value. X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/commitdiff_plain/090d78e1231a88a5e519284e88d0d91de1446e15 Fixed a problem in the computing of a missing mask value. --- diff --git a/acls.diff b/acls.diff index 498def7..e1b8bbd 100644 --- a/acls.diff +++ b/acls.diff @@ -729,7 +729,7 @@ the file that does not need any other attribute updates. + +static void receive_rsync_acl(rsync_acl *racl, int f) +{ -+ uchar missing_mask_bits = 0; ++ uchar computed_mask_bits = 0; + ida_list *idal = NULL; + id_access *ida; + size_t count; @@ -791,7 +791,7 @@ the file that does not need any other attribute updates. + ida = &idal->idas[idal->count++]; + ida->access = access; + ida->id = read_int(f); -+ missing_mask_bits |= access; ++ computed_mask_bits |= access; + } + + /* Ensure that these are never unset. */ @@ -813,7 +813,7 @@ the file that does not need any other attribute updates. + } else +#endif + if (racl->mask == NO_ENTRY) -+ racl->mask = missing_mask_bits | racl->other; ++ racl->mask = computed_mask_bits | racl->group_obj; +} + +/* receive and build the rsync_acl_lists */