File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2754,8 +2754,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
27542754 {
27552755 flags = O_RDWR | O_CREAT | O_TRUNC | O_BINARY ;
27562756 type = "w+b" ;
2757- status = IsRightsAuthorized (SystemPolicyDomain ,( const PolicyRights ) (
2758- ReadPolicyRights | WritePolicyRights ) ,"follow" );
2757+ status = IsRightsAuthorized (SystemPolicyDomain ,ReadPolicyRights , "follow" ) &&
2758+ IsRightsAuthorized ( SystemPolicyDomain , WritePolicyRights ,"follow" );
27592759 break ;
27602760 }
27612761 case AppendBlobMode :
@@ -2769,8 +2769,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
27692769 {
27702770 flags = O_RDWR | O_CREAT | O_APPEND | O_BINARY ;
27712771 type = "a+b" ;
2772- status = IsRightsAuthorized (SystemPolicyDomain ,( const PolicyRights ) (
2773- ReadPolicyRights | WritePolicyRights ) ,"follow" );
2772+ status = IsRightsAuthorized (SystemPolicyDomain ,ReadPolicyRights , "follow" ) &&
2773+ IsRightsAuthorized ( SystemPolicyDomain , WritePolicyRights ,"follow" );
27742774 break ;
27752775 }
27762776 default :
You can’t perform that action at this time.
0 commit comments