OSSP CVS Repository

ossp - Difference in ossp-pkg/petidomo/unsubscribe.c versions 1.17 and 1.18
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/petidomo/unsubscribe.c 1.17 -> 1.18

--- unsubscribe.c        2001/01/19 14:28:08     1.17
+++ unsubscribe.c        2001/01/19 14:56:33     1.18
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/unsubscribe.c,v $
-   $Revision: 1.17 $
+   $Revision: 1.18 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -18,6 +18,8 @@
 */
 
 #include <string.h>
+#include <errno.h>
+
 #include "libtext/text.h"
 #include "petidomo.h"
 
@@ -293,7 +295,7 @@
         fh = fopen(ListConfig->address_file, "w");
         if (fh == NULL)
             {
-            syslog(LOG_ERR, "Failed to open file \"%s\" for writing: %m", ListConfig->address_file);
+            syslog(LOG_ERR, "Failed to open file \"%s\" for writing: %s", ListConfig->address_file, strerror(errno));
             return -1;
             }
         *p++ = '\0';

CVSTrac 2.0.1