]> git.pld-linux.org Git - packages/exim.git/blob - exim4-faster_getpwuid.patch
- typo, missing ,,:'' in daemon_smtp_ports
[packages/exim.git] / exim4-faster_getpwuid.patch
1 diff -urN exim-4.42.org/src/exim.c exim-4.42/src/exim.c
2 --- exim-4.42.org/src/exim.c    2004-09-21 15:04:23.506142125 +0200
3 +++ exim-4.42/src/exim.c        2004-09-21 15:08:08.497942908 +0200
4 @@ -3551,7 +3551,7 @@
5  delays are in evidence. Save the home directory for use in filter testing
6  (only). */
7  
8 -for (i = 1; i <= 10; i++)
9 +for (i = 1; i <= (finduser_retries + 1); i++)
10    {
11    if ((pw = getpwuid(real_uid)) != NULL)
12      {
13 @@ -3620,7 +3620,8 @@
14  
15      break;
16      }
17 -  sleep(1);
18 +  if (finduser_retries)
19 +      sleep(1);
20    }
21  
22  /* If we cannot get a user login, log the incident and give up, unless the
This page took 0.025893 seconds and 3 git commands to generate.