]> git.pld-linux.org Git - packages/exim.git/commitdiff
- faster lookup when there is no passwd entry for specified UID
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 21 Sep 2004 13:14:45 +0000 (13:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    exim4-faster_getpwuid.patch -> 1.1

exim4-faster_getpwuid.patch [new file with mode: 0644]

diff --git a/exim4-faster_getpwuid.patch b/exim4-faster_getpwuid.patch
new file mode 100644 (file)
index 0000000..5a903aa
--- /dev/null
@@ -0,0 +1,22 @@
+diff -urN exim-4.42.org/src/exim.c exim-4.42/src/exim.c
+--- exim-4.42.org/src/exim.c   2004-09-21 15:04:23.506142125 +0200
++++ exim-4.42/src/exim.c       2004-09-21 15:08:08.497942908 +0200
+@@ -3551,7 +3551,7 @@
+ delays are in evidence. Save the home directory for use in filter testing
+ (only). */
+-for (i = 1; i <= 10; i++)
++for (i = 1; i <= (finduser_retries + 1); i++)
+   {
+   if ((pw = getpwuid(real_uid)) != NULL)
+     {
+@@ -3620,7 +3620,8 @@
+     break;
+     }
+-  sleep(1);
++  if (finduser_retries)
++      sleep(1);
+   }
+ /* If we cannot get a user login, log the incident and give up, unless the
This page took 0.033388 seconds and 4 git commands to generate.