Skip to content

Commit bc0b2cb

Browse files
alexandrupandelealukefromdc
authored andcommitted
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
1 parent 8fff655 commit bc0b2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/file-manager/fm-properties-window.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3611,7 +3611,7 @@ initial_permission_state_consistent (FMPropertiesWindow *window,
36113611
first_permissions = permissions;
36123612
first = FALSE;
36133613

3614-
} else if ((permissions & mask) != first_permissions) {
3614+
} else if ((permissions & mask) != (first_permissions & mask)) {
36153615
/* Not same permissions as first -> inconsistent */
36163616
return FALSE;
36173617
}

0 commit comments

Comments
 (0)