Skip to content
Permalink
Browse files

properties-window: fix checking inconsistent state

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 25, 2016
1 parent 8fff655 commit bc0b2cbb27478a5c31d6f0db376385e70caaddbb
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/file-manager/fm-properties-window.c
@@ -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;
}

0 comments on commit bc0b2cb

Please sign in to comment.
You can’t perform that action at this time.