Add errno=0 before calling getpwnam() in previous patch.
authorPhilip Hazel <ph10@hermes.cam.ac.uk>
Mon, 17 Jul 2006 09:21:00 +0000 (09:21 +0000)
committerPhilip Hazel <ph10@hermes.cam.ac.uk>
Mon, 17 Jul 2006 09:21:00 +0000 (09:21 +0000)
src/src/route.c

index 436f769a275e644d5be4d931a267720af41b70bc..cc0d63cb0281c4b10d1320401eac92e960adfd62 100644 (file)
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/route.c,v 1.9 2006/07/14 14:00:16 ph10 Exp $ */
+/* $Cambridge: exim/src/src/route.c,v 1.10 2006/07/17 09:21:00 ph10 Exp $ */
 
 /*************************************************
 *     Exim - an Internet mail transport agent    *
@@ -1109,6 +1109,7 @@ if (!cache_set)
 
   else for (;;)
     {
+    errno = 0;
     if ((lastpw = getpwnam(CS s)) != NULL) break;
     if (++i > finduser_retries) break;
     sleep(1);