Changeset 454 for trunk/server/source3/lib/ldb
- Timestamp:
- Jun 4, 2010, 3:11:43 PM (15 years ago)
- Location:
- trunk/server/source3/lib/ldb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/ldb/common/ldb.c
r414 r454 117 117 ldb_connect_fn fn; 118 118 119 #ifndef __OS2__ // on OS2 we have a semicolon at the second character if w/o backend called 119 120 if (strchr(url, ':') != NULL) { 121 #else 122 if (url[1] != ':' && strchr(url, ':') != NULL) { 123 #endif 120 124 backend = talloc_strndup(ldb, url, strchr(url, ':')-url); 121 125 } else { -
trunk/server/source3/lib/ldb/ldb_tdb/ldb_tdb.c
r414 r454 1012 1012 1013 1013 /* parse the url */ 1014 #ifndef __OS2__ // on OS2 we have a semicolon at the second character if w/o backend called 1014 1015 if (strchr(url, ':')) { 1016 #else 1017 if (url[1] != ':' && strchr(url, ':') != NULL) { 1018 #endif 1015 1019 if (strncmp(url, "tdb://", 6) != 0) { 1016 1020 ldb_debug(ldb, LDB_DEBUG_ERROR, "Invalid tdb URL '%s'", url);
Note:
See TracChangeset
for help on using the changeset viewer.