]> git.sur5r.net Git - openldap/commitdiff
ITS#5117 try to log a message if chasing an include: fails. Since
authorHoward Chu <hyc@openldap.org>
Sun, 2 Sep 2007 02:16:52 +0000 (02:16 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 2 Sep 2007 02:16:52 +0000 (02:16 +0000)
ldif_read_record() doesn't distinguish errors from EOF, this is kind
of futile.

libraries/liblutil/ldif.c

index 482a604d62b13f7c3756ea8c5941572c6d6fabb3..f3badef0b4721c8f06ecda1fe1994d487f6e13f8 100644 (file)
@@ -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;
                                                }
                                        }
                                }