On Mon, 3 Jul 2006, Jason Lixfeld wrote:
>
> Patched and compiled, however -d -bmc doesn't catch it. What debug
> flags should I use?
A bare -d should be enough since uid is in the default set. If in doubt
use -d+all.
You can also try this patch, to catch the other kind of NULL result:
--- route.c 7 Feb 2006 11:19:00 -0000 1.8
+++ route.c 3 Jul 2006 18:40:49 -0000
@@ -1104,10 +1104,17 @@
else for (;;)
{
+ errno = 0;
if ((lastpw = getpwnam(CS s)) != NULL) break;
if (++i > finduser_retries) break;
sleep(1);
}
+ DEBUG(D_uid) {
+ if (lastpw == NULL && errno != 0)
+ debug_printf("getpwnam(%s) failed: %s\n", s, strerror(errno));
+ else
+ debug_printf("getpwnam(%s) returned NULL (user not found)\n", s);
+ }
if (lastpw != NULL)
{
Tony.
--
<fanf@???> <dot@???>
http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}