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.

12 lines
680 B

  1. diff -Naur imap-2007f.orig/src/osdep/unix/flocklnx.c imap-2007f/src/osdep/unix/flocklnx.c
  2. --- imap-2007f.orig/src/osdep/unix/flocklnx.c 2011-07-23 02:20:11.000000000 +0200
  3. +++ imap-2007f/src/osdep/unix/flocklnx.c 2014-04-14 19:17:46.429000000 +0200
  4. @@ -57,7 +57,7 @@
  5. case ENOLCK: /* lock table is full */
  6. sprintf (tmp,"File locking failure: %s",strerror (errno));
  7. mm_log (tmp,WARN); /* give the user a warning of what happened */
  8. - if (!logged++) syslog (LOG_ERR,tmp);
  9. + if (!logged++) syslog (LOG_ERR, "%s", tmp);
  10. /* return failure if non-blocking lock */
  11. if (op & LOCK_NB) return -1;
  12. sleep (5); /* slow down in case it loops */