From: Howard Chu Date: Sat, 26 Nov 2005 22:34:23 +0000 (+0000) Subject: Fix prev commit again, relative paths are legal. X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~673 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=341ac2a06675cb32788c868cfdcc83f64356944c;p=openldap Fix prev commit again, relative paths are legal. --- diff --git a/libraries/liblutil/fetch.c b/libraries/liblutil/fetch.c index b3e92b24ca..fe56e61809 100644 --- a/libraries/liblutil/fetch.c +++ b/libraries/liblutil/fetch.c @@ -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 );