[exim-cvs] src/deliver.c: log the error message when unlink(…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] src/deliver.c: log the error message when unlink(spoolname) fails
Gitweb: http://git.exim.org/exim.git/commitdiff/0761d44e078b0c779c92be127bb4d984c60d0320
Commit:     0761d44e078b0c779c92be127bb4d984c60d0320
Parent:     c0ea85abed9a15203691b049dd76104360fc0dc6
Author:     Tony Finch <dot@???>
AuthorDate: Fri Jan 14 14:19:40 2011 +0000
Committer:  Tony Finch <dot@???>
CommitDate: Fri Jan 14 14:19:40 2011 +0000


    src/deliver.c: log the error message when unlink(spoolname) fails
---
 doc/doc-txt/ChangeLog |    2 ++
 src/src/deliver.c     |    3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index d19f308..ef82a0c 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -12,6 +12,8 @@ TF/01 Failure to get a lock on a hints database can have serious
 TF/02 Log LMTP confirmation messages in the same way as SMTP,
       controlled using the smtp_confirmation log selector.


+TF/03 Include the error message when we fail to unlink a spool file.
+

 Exim version 4.73
 -----------------
diff --git a/src/src/deliver.c b/src/src/deliver.c
index 668e4b2..807f038 100644
--- a/src/src/deliver.c
+++ b/src/src/deliver.c
@@ -6568,7 +6568,8 @@ if (addr_defer == NULL)
     else
       {
       if (Uunlink(spoolname) < 0)
-        log_write(0, LOG_MAIN|LOG_PANIC_DIE, "failed to unlink %s", spoolname);
+        log_write(0, LOG_MAIN|LOG_PANIC_DIE, "failed to unlink %s: %s",
+          spoolname, strerror(errno));
       }
     }