From ec785076825c1915b1ddcd14c2d32e8f6ae1c1c8 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 2 Sep 2007 02:16:52 +0000 Subject: [PATCH] ITS#5117 try to log a message if chasing an include: fails. Since ldif_read_record() doesn't distinguish errors from EOF, this is kind of futile. --- libraries/liblutil/ldif.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/liblutil/ldif.c b/libraries/liblutil/ldif.c index 482a604d62..f3badef0b4 100644 --- a/libraries/liblutil/ldif.c +++ b/libraries/liblutil/ldif.c @@ -879,7 +879,9 @@ ldif_read_record( /* We failed to open the file, this should * be reported as an error somehow. */ - break; + ber_pvt_log_printf( LDAP_DEBUG_ANY, ldif_debug, + _("ldif_read_record: include %s failed\n"), ptr ); + return 0; } } } -- 2.39.5