Ignore:
Timestamp:
Jun 12, 2009, 5:09:59 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

ldb init fix (by diver) in 3.3 branch

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  
    117117        ldb_connect_fn fn;
    118118
     119//  on OS2 we have a semicolon at the second character if w/o backend called
     120#ifndef __OS2__
    119121        if (strchr(url, ':') != NULL) {
     122#else
     123        if (url[1] != ':'  &&  strchr(url, ':') != NULL) {
     124#endif
    120125                backend = talloc_strndup(ldb, url, strchr(url, ':')-url);
    121126        } else {
  • branches/samba-3.3.x/source/lib/ldb/ldb_tdb/ldb_tdb.c

    r206 r263  
    10121012
    10131013        /* parse the url */
     1014//  on OS2 we have a semicolon at the second character if w/o backend called
     1015#ifndef __OS2__
    10141016        if (strchr(url, ':')) {
     1017#else
     1018 if (url[1] != ':'  &&  strchr(url, ':') != NULL) {
     1019#endif
    10151020                if (strncmp(url, "tdb://", 6) != 0) {
    10161021                        ldb_debug(ldb, LDB_DEBUG_ERROR, "Invalid tdb URL '%s'", url);
Note: See TracChangeset for help on using the changeset viewer.