File 0003-I-had-to-repair-this-code-because-I-could-not-turn-l.patch of Package libc-client

m f6bfff94cdab903e402a48c5f07636f414679474 Mon Sep 17 00:00:00 2001
From: Julian Brown <julian.brown@cpanel.net>
Date: Fri, 29 May 2020 15:08:42 -0500
Subject: [PATCH 3/3] I had to repair this code, because I could not turn lint
 off.

---
 src/osdep/unix/flocklnx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/osdep/unix/flocklnx.c b/src/osdep/unix/flocklnx.c
index ca0112a..06940b8 100644
--- a/src/osdep/unix/flocklnx.c
+++ b/src/osdep/unix/flocklnx.c
@@ -57,7 +57,7 @@ int safe_flock (int fd,int op)
     case ENOLCK:		/* lock table is full */
       sprintf (tmp,"File locking failure: %s",strerror (errno));
       mm_log (tmp,WARN);	/* give the user a warning of what happened */
-      if (!logged++) syslog (LOG_ERR,tmp);
+      if (!logged++) syslog (LOG_ERR,"%s",tmp);
 				/* return failure if non-blocking lock */
       if (op & LOCK_NB) return -1;
       sleep (5);		/* slow down in case it loops */
-- 
2.25.1

openSUSE Build Service is sponsored by