OSSP CVS Repository

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

ossp-pkg/petidomo/queue_command.c 1.5 -> 1.6

--- queue_command.c      2001/01/19 14:53:23     1.5
+++ queue_command.c      2001/01/19 14:56:33     1.6
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/Attic/queue_command.c,v $
-   $Revision: 1.5 $
+   $Revision: 1.6 $
 
    Copyright (C) 2000 by Peter Simons <simons@computer.org>.
 
@@ -17,6 +17,8 @@
    General Public License for more details.
 */
 
+#include <string.h>
+#include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include "libtext/text.h"
@@ -34,7 +36,7 @@
     fh = fopen(buffer, "w");
     if (fh == NULL)
         {
-        syslog(LOG_ERR, "Opening ack spool file \"%s\" failed: %m", buffer);
+        syslog(LOG_ERR, "Opening ack spool file \"%s\" failed: %s", buffer, strerror(errno));
         exit(1);
         }
     fprintf(fh, "#! /bin/sh\n");

CVSTrac 2.0.1