[exim-cvs] Fix build with DRWEB malware scanner

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Fix build with DRWEB malware scanner
Gitweb: https://git.exim.org/exim.git/commitdiff/c4141216b51b0dce51504479342d2bfc8a83dfad
Commit:     c4141216b51b0dce51504479342d2bfc8a83dfad
Parent:     ebcf27afb54c7dc93a3a4a76487a597ec153e9b5
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Jan 11 23:07:53 2020 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sun Jan 12 00:02:15 2020 +0000


    Fix build with DRWEB malware scanner


    Broken-by: 9e21ce8fc4
---
 src/src/malware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/src/src/malware.c b/src/src/malware.c
index ec2f7c1..cfff9ee 100644
--- a/src/src/malware.c
+++ b/src/src/malware.c
@@ -791,7 +791,7 @@ if (!malware_ok)
       if (*scanner_options != '/')
     {
     /* calc file size */
-    if ((drweb_fd = exim_open(CCS eml_filename, O_RDONLY)) == -1)
+    if ((drweb_fd = exim_open2(CCS eml_filename, O_RDONLY)) == -1)
       return m_panic_defer_3(scanent, NULL,
         string_sprintf("can't open spool file %s: %s",
           eml_filename, strerror(errno)),