]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/fetch.c
Happy new year!
[openldap] / libraries / liblutil / fetch.c
index b3e92b24cafca2e4e84d2b734a9eb0e5e1d8b610..661bc1e75b164b45cc9be39466a2d942ca1a2fe8 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1999-2005 The OpenLDAP Foundation.
+ * Copyright 1999-2006 The OpenLDAP Foundation.
  * Portions Copyright 1999-2003 Kurt D. Zeilenga.
  * All rights reserved.
  *
@@ -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 );