Changeset 263 for branches/samba-3.3.x/source/lib
- Timestamp:
- Jun 12, 2009, 5:09:59 PM (16 years ago)
- Location:
- branches/samba-3.3.x/source/lib/ldb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/ldb/common/ldb.c
r206 r263 117 117 ldb_connect_fn fn; 118 118 119 // on OS2 we have a semicolon at the second character if w/o backend called 120 #ifndef __OS2__ 119 121 if (strchr(url, ':') != NULL) { 122 #else 123 if (url[1] != ':' && strchr(url, ':') != NULL) { 124 #endif 120 125 backend = talloc_strndup(ldb, url, strchr(url, ':')-url); 121 126 } else { -
branches/samba-3.3.x/source/lib/ldb/ldb_tdb/ldb_tdb.c
r206 r263 1012 1012 1013 1013 /* parse the url */ 1014 // on OS2 we have a semicolon at the second character if w/o backend called 1015 #ifndef __OS2__ 1014 1016 if (strchr(url, ':')) { 1017 #else 1018 if (url[1] != ':' && strchr(url, ':') != NULL) { 1019 #endif 1015 1020 if (strncmp(url, "tdb://", 6) != 0) { 1016 1021 ldb_debug(ldb, LDB_DEBUG_ERROR, "Invalid tdb URL '%s'", url);
Note:
See TracChangeset
for help on using the changeset viewer.