[exim-cvs] Fix dkim for no-key case under SENDFILE compile. …

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Fix dkim for no-key case under SENDFILE compile. Bug 934
Gitweb: http://git.exim.org/exim.git/commitdiff/75febd1bb37ede1b350b9e45e02f18b7d0067824
Commit:     75febd1bb37ede1b350b9e45e02f18b7d0067824
Parent:     077ba9434716afd74c87b8100f745bb0fcc092e4
Author:     Wolfgang Breyha <wbreyha@???>
AuthorDate: Wed Jun 11 19:19:49 2014 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Wed Jun 11 19:58:21 2014 +0100


    Fix dkim for no-key case under SENDFILE compile.  Bug 934


    Tested-by: <wbreyha@???>
---
 src/src/transport.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/src/src/transport.c b/src/src/transport.c
index d222adc..3648bfc 100644
--- a/src/src/transport.c
+++ b/src/src/transport.c
@@ -1068,7 +1068,7 @@ if (dkim_private_key && dkim_domain && dkim_selector)
       uschar *dkim_strict_result = expand_string(dkim_strict);
       if (dkim_strict_result)
     if ( (strcmpic(dkim_strict,US"1") == 0) ||
-         (strcmpic(dkim_strict,US"true") == 0) )
+         (strcmpic(dkim_strict,US"true") == 0) ) 
       {
       /* Set errno to something halfway meaningful */
       save_errno = EACCES;
@@ -1104,8 +1104,8 @@ if (dkim_private_key && dkim_domain && dkim_selector)
     }
   }


- /* Fetch file positition (the size) */
- size = lseek(dkim_fd,0,SEEK_CUR);
+/* Fetch file size */
+size = lseek(dkim_fd, 0, SEEK_END);

/* Rewind file */
lseek(dkim_fd, 0, SEEK_SET);