[vhffs-dev] [2179] syslog argument is actually a format, we don' t want the log string to be parsed

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2179
Author:   gradator
Date:     2012-05-07 21:42:26 +0200 (Mon, 07 May 2012)
Log Message:
-----------
syslog argument is actually a format, we don't want the log string to be parsed

Modified Paths:
--------------
    trunk/vhffs-patches/pureftpd/pure-ftpd-1.0.35-altlog-syslog.patch

Modified: trunk/vhffs-patches/pureftpd/pure-ftpd-1.0.35-altlog-syslog.patch
===================================================================
--- trunk/vhffs-patches/pureftpd/pure-ftpd-1.0.35-altlog-syslog.patch	2012-05-07 19:19:35 UTC (rev 2178)
+++ trunk/vhffs-patches/pureftpd/pure-ftpd-1.0.35-altlog-syslog.patch	2012-05-07 19:42:26 UTC (rev 2179)
@@ -51,7 +51,7 @@
 +            openlog("pure-ftpd", log_pid, altlog_syslog_facility);
 +        }
 +# endif
-+        syslog(LOG_NOTICE, str);
++        syslog(LOG_NOTICE, "%s", str);
 +# ifdef SAVE_DESCRIPTORS
 +        closelog();
 +# else


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/