cfingerd (1.4.3-3) src/log.c

Summary

 src/log.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

--- cfingerd-1.4.3.orig/src/log.c
+++ cfingerd-1.4.3/src/log.c
@@ -17,7 +17,7 @@
 #include "proto.h"
 #include "privs.h"
 
-void log(int logtype, char *msg, char *user)
+void mylog(int logtype, char *msg, char *user)
 {
     if (can_log && (prog_config.config_bits3 & SHOW_LOG)) {
 	time_t tim = time(NULL);
@@ -80,7 +80,7 @@
     } else {
 	if (!(prog_config.config_bits3 & SHOW_CREATE_FLG)) {
 	    syslog(LOG_WARNING, "Userlog: %s (%s)", filename, strerror(errno));
-	    log(LOG_ERROR, "Cannot write to userlog: ", strerror(errno));
+	    mylog(LOG_ERROR, "Cannot write to userlog: ", strerror(errno));
 	}
     }
 }