Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
8a532879
Commit
8a532879
authored
Sep 02, 2007
by
Howard Chu
Browse files
More for ITS#5117 - only use libfetch for non-file: URLs
parent
ec785076
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblutil/fetch.c
View file @
8a532879
...
@@ -43,10 +43,7 @@ ldif_open_url(
...
@@ -43,10 +43,7 @@ ldif_open_url(
LDAP_CONST
char
*
urlstr
)
LDAP_CONST
char
*
urlstr
)
{
{
FILE
*
url
;
FILE
*
url
;
#ifdef HAVE_FETCH
url
=
fetchGetURL
(
(
char
*
)
urlstr
,
""
);
#else
if
(
strncasecmp
(
"file:"
,
urlstr
,
sizeof
(
"file:"
)
-
1
)
==
0
)
{
if
(
strncasecmp
(
"file:"
,
urlstr
,
sizeof
(
"file:"
)
-
1
)
==
0
)
{
char
*
p
;
char
*
p
;
urlstr
+=
sizeof
(
"file:"
)
-
1
;
urlstr
+=
sizeof
(
"file:"
)
-
1
;
...
@@ -66,9 +63,12 @@ ldif_open_url(
...
@@ -66,9 +63,12 @@ ldif_open_url(
ber_memfree
(
p
);
ber_memfree
(
p
);
}
else
{
}
else
{
return
NULL
;
#ifdef HAVE_FETCH
}
url
=
fetchGetURL
(
(
char
*
)
urlstr
,
""
);
#else
url
=
NULL
;
#endif
#endif
}
return
url
;
return
url
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment