Skip to content

Commit

Permalink
properties-window: fix checking inconsistent state
Browse files Browse the repository at this point in the history
In the function initial_permission_state_consistent, when the check was
made to see if the files have the same permissions, the check was not
correct.

To fix this, also do & between the first_permissions and the mask.

https://bugzilla.gnome.org/show_bug.cgi?id=698955
Adapted from https://gitlab.gnome.org/GNOME/nautilus/commit/37595852
  • Loading branch information
alexandrupandelea authored and lukefromdc committed Nov 2, 2018
1 parent 8fff655 commit bc0b2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file-manager/fm-properties-window.c
Expand Up @@ -3611,7 +3611,7 @@ initial_permission_state_consistent (FMPropertiesWindow *window,
first_permissions = permissions;
first = FALSE;

} else if ((permissions & mask) != first_permissions) {
} else if ((permissions & mask) != (first_permissions & mask)) {
/* Not same permissions as first -> inconsistent */
return FALSE;
}
Expand Down

0 comments on commit bc0b2cb

Please sign in to comment.