void-packages/srcpkgs/hfsprogs/patches/fix-binary-and.patch
Jürgen Buchmüller 5e52ac9aa4
hfsprogs: add patches for (potential) issues
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-05-26 13:28:30 +02:00

15 lines
627 B
Diff

Source: pullmoll
Upstream: no (should be reported)
Reason: needs binary and (&) to test for bit mask
--- fsck_hfs.tproj/dfalib/SBTree.c 2012-02-01 18:17:19.000000000 +0100
+++ fsck_hfs.tproj/dfalib/SBTree.c 2019-05-26 12:45:16.688514031 +0200
@@ -502,7 +502,7 @@
{
if ( recordSize != sizeof(HFSPlusCatalogFolder) )
return false;
- if ( (catalogRecord->hfsPlusFolder.flags && (kHFSFileLockedMask | kHFSThreadExistsMask)) != 0 )
+ if ( (catalogRecord->hfsPlusFolder.flags & (kHFSFileLockedMask | kHFSThreadExistsMask)) != 0 )
return false;
cNodeID = catalogRecord->hfsPlusFolder.folderID;