You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
526 B

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