OSSP CVS Repository

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

ossp-pkg/petidomo/subscribe.c 1.18 -> 1.19

--- subscribe.c  2001/01/19 14:28:08     1.18
+++ subscribe.c  2001/01/19 14:56:33     1.19
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/subscribe.c,v $
-   $Revision: 1.18 $
+   $Revision: 1.19 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -18,6 +18,8 @@
 */
 
 #include <string.h>
+#include <errno.h>
+
 #include "libtext/text.h"
 #include "petidomo.h"
 
@@ -291,7 +293,7 @@
     fh = fopen(ListConfig->address_file, "a");
     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;
         }
     fprintf(fh, "%s\n", address);

CVSTrac 2.0.1