mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-14 04:59:00 +03:00
lib/commit: fix checking flag with bitwise OR
Caught by Coverity. Coverity CID: 1458339 Closes: #1290 Approved by: cgwalters
This commit is contained in:
parent
a2f8315eae
commit
18b85fa8bd
@ -2835,7 +2835,7 @@ write_directory_content_to_mtree_internal (OstreeRepo *self,
|
||||
file_type == G_FILE_TYPE_REGULAR
|
||||
&& dfd_iter != NULL
|
||||
&& delete_after_commit
|
||||
&& (writeflags | WRITE_DIR_CONTENT_FLAGS_CAN_ADOPT) > 0;
|
||||
&& ((writeflags & WRITE_DIR_CONTENT_FLAGS_CAN_ADOPT) > 0);
|
||||
gboolean can_adopt = can_adopt_basic;
|
||||
/* If basic prerquisites are met, check repo mode specific ones */
|
||||
if (can_adopt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user