OSSP CVS Repository

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

ossp-pkg/petidomo/approve.c 1.3 -> 1.4

--- approve.c    2001/01/18 20:30:50     1.3
+++ approve.c    2001/01/19 14:56:33     1.4
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/approve.c,v $
-   $Revision: 1.3 $
+   $Revision: 1.4 $
 
    Copyright (C) 2000 by Peter Simons <simons@computer.org>.
 
@@ -17,11 +17,14 @@
    General Public License for more details.
 */
 
-#include "petidomo.h"
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <regex.h>
+#include <string.h>
+#include <errno.h>
+
+#include "petidomo.h"
 
 int approve_main(char* mail)
     {
@@ -33,7 +36,7 @@
 
     if (chdir(MasterConfig->ack_queue_dir) == -1)
         {
-        syslog(LOG_ERR, "Can't change directory to \"%s\": %m", MasterConfig->ack_queue_dir);
+        syslog(LOG_ERR, "Can't change directory to \"%s\": %s", MasterConfig->ack_queue_dir, strerror(errno));
         exit(1);
         }
 
@@ -73,7 +76,7 @@
             sprintf(cmd, "/bin/sh %s && /bin/rm -f %s", buffer, buffer);
             if (((signed char)system(cmd)) == -1)
                 {
-                syslog(LOG_ERR, "system() failed: %m", MasterConfig->ack_queue_dir);
+                syslog(LOG_ERR, "system() failed for \"%s\": %s", buffer, strerror(errno));
                 exit(1);
                 }
             }

CVSTrac 2.0.1