imap-2007f-format-security.patch

This commit is contained in:
Chris 2019-01-03 04:21:04 -06:00
parent fc0899b6db
commit 940401df1f

View File

@ -57,7 +57,7 @@ int safe_flock (int fd,int op)
case ENOLCK: /* lock table is full */ case ENOLCK: /* lock table is full */
sprintf (tmp,"File locking failure: %s",strerror (errno)); sprintf (tmp,"File locking failure: %s",strerror (errno));
mm_log (tmp,WARN); /* give the user a warning of what happened */ 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 */ /* return failure if non-blocking lock */
if (op & LOCK_NB) return -1; if (op & LOCK_NB) return -1;
sleep (5); /* slow down in case it loops */ sleep (5); /* slow down in case it loops */