summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Pandelea <alexandru.pandelea@gmail.com>2016-11-25 16:50:16 +0200
committerCarlos Soriano <csoriano@gnome.org>2016-12-10 00:33:45 +0100
commitb135c90d9733095714bc4021cdffb55dc11c423f (patch)
tree8f8ce97448f1fb8fc87eb108461737a5b472d039
parentacc282ce4e391a3d197082ec26973c6764c277d5 (diff)
downloadnautilus-b135c90d9733095714bc4021cdffb55dc11c423f.tar.gz
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
-rw-r--r--src/nautilus-properties-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 769c4f5ba..e2dc19f06 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -3505,7 +3505,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;