From 341ac2a06675cb32788c868cfdcc83f64356944c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 26 Nov 2005 22:34:23 +0000 Subject: [PATCH] Fix prev commit again, relative paths are legal. --- libraries/liblutil/fetch.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ); -- 2.39.5