]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit again, relative paths are legal.
authorHoward Chu <hyc@openldap.org>
Sat, 26 Nov 2005 22:34:23 +0000 (22:34 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 26 Nov 2005 22:34:23 +0000 (22:34 +0000)
libraries/liblutil/fetch.c

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