Commit 3deb8ef7 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Fix dirsep chars before opening file

part of windows fixes already committed.
parent 58d4afec
......@@ -57,6 +57,14 @@ ldif_open_url(
}
p = ber_strdup( urlstr );
/* But we should convert to LDAP_DIRSEP before use */
if ( LDAP_DIRSEP[0] != '/' ) {
char *s = p;
while (( s = strchr( s, '/' )))
*s++ = LDAP_DIRSEP[0];
}
ldap_pvt_hex_unescape( p );
url = fopen( p, "rb" );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment