]> git.sur5r.net Git - openldap/commitdiff
Sync with HEAD
authorKurt Zeilenga <kurt@openldap.org>
Sun, 27 Nov 2005 00:19:24 +0000 (00:19 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 27 Nov 2005 00:19:24 +0000 (00:19 +0000)
libraries/liblutil/fetch.c

index a182b3591a6324ef1ccfe308b5e4e84e9922dc74..fe56e6180967c8fd4beef0848fcf90a1c8e6d91b 100644 (file)
@@ -55,8 +55,10 @@ ldif_open_url(
                }
 
                /* we don't check for LDAP_DIRSEP since URLs should contain '/' */
-               /* skip over false root */
-               p++;
+               if( p[1] == '.' && ( p[2] == '/' || ( p[2] == '.' && p[3] == '/' ))) {
+                       /* skip over false root */
+                       p++;
+               }
 
                p = ber_strdup( p );
                ldap_pvt_hex_unescape( p );