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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/groupdb/mapping_ldb.c

    r206 r263  
    8181        /* force the permissions on the ldb to 0600 - this will fix
    8282           existing databases as well as new ones */
     83#ifndef __OS2__
    8384        if (chmod(db_path, 0600) != 0) {
    8485                goto failed;
    8586        }
     87#endif
    8688
    8789        if (!existed) {
  • 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);
  • branches/samba-3.3.x/source/pkgconfig/netapi.pc

    r206 r263  
    1010#Libs: -L${exec_prefix}/lib -lnetapi
    1111Libs: -lnetapi
    12 Libs.private: -lnetapi   
     12Libs.private: -lnetapi   -lsocket -lsyslog -lurpo
    1313Cflags: -I${prefix}/include
    1414
  • branches/samba-3.3.x/source/pkgconfig/smbclient.pc

    r206 r263  
    1010#Libs: -L${exec_prefix}/lib -lsmbclient
    1111Libs: -lsmbclient
    12 Libs.private: -lsmbclient   
     12Libs.private: -lsmbclient   -lsocket -lsyslog -lurpo
    1313Cflags: -I${prefix}/include
    1414
  • branches/samba-3.3.x/source/pkgconfig/smbsharemodes.pc

    r206 r263  
    1010#Libs: -L${exec_prefix}/lib -lsmbsharemodes
    1111Libs: -lsmbsharemodes
    12 Libs.private: -lsmbsharemodes   
     12Libs.private: -lsmbsharemodes   -lsocket -lsyslog -lurpo
    1313Cflags: -I${prefix}/include
    1414
Note: See TracChangeset for help on using the changeset viewer.