From: Howard Chu Date: Sun, 2 Sep 2007 02:16:52 +0000 (+0000) Subject: ITS#5117 try to log a message if chasing an include: fails. Since X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec785076825c1915b1ddcd14c2d32e8f6ae1c1c8;p=openldap 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. --- 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; } } }