From 3759585272c578a3d324238deb1eb9362465796e Mon Sep 17 00:00:00 2001 From: Alexandru Pandelea Date: Fri, 25 Nov 2016 16:50:16 +0200 Subject: 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 --- src/nautilus-properties-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c index b333458bd..ec80d4e2f 100644 --- a/src/nautilus-properties-window.c +++ b/src/nautilus-properties-window.c @@ -3462,7 +3462,7 @@ initial_permission_state_consistent (NautilusPropertiesWindow *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; -- cgit v1.2.1