]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Thu, 12 May 2005 02:56:11 +0000 (02:56 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 12 May 2005 02:56:11 +0000 (02:56 +0000)
libraries/liblutil/fetch.c
libraries/liblutil/ldif.c

index 5ed0ad9cb094b35aa7b26cece71d76b39ec20d5c..904966619dc0db7d19e77e2fe25f55575a24110e 100644 (file)
@@ -56,10 +56,8 @@ ldif_open_url(
                }
 
                /* we don't check for LDAP_DIRSEP since URLs should contain '/' */
-               if( *p != '/' ) {
-                       /* skip over false root */
-                       p++;
-               }
+               /* skip over false root */
+               p++;
 
                p = ber_strdup( p );
                ldap_pvt_hex_unescape( p );
index c4f26184417cf63e916f372ac0dbaff4a2bdf9a7..01ac9dbf5b403d85377deaa6b0d9be4bf06f60de 100644 (file)
@@ -866,6 +866,8 @@ ldif_read_record(
                                                        lnew->fp = lfp->fp;
                                                        lfp->prev = lnew;
                                                        lfp->fp = fp2;
+                                                       line[len] = '\n';
+                                                       len++;
                                                        continue;
                                                } else {
                                                        /* We failed to open the file, this should