Changeset 907 for trunk/server


Ignore:
Timestamp:
May 19, 2016, 4:13:56 PM (9 years ago)
Author:
dmik
Message:

tdb: Restore vendor version of tdbtool.

This effectively reverts r356, r391 and r392 (see #112). Seems not to be
necessary with the recent Samba and kLIBC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/tdb/tools/tdbtool.c

    r745 r907  
    3737char cmdline[1024];
    3838static int disable_mmap;
    39 
    40 #ifdef __OS2__
    41 static bool createDbCmd;
    42 #endif
    4339
    4440enum commands {
     
    243239        tdb = tdb_open_ex(tdbname, 0, disable_mmap?TDB_NOMMAP:0, O_RDWR, 0600,
    244240                          &log_ctx, NULL);
    245 #ifdef __OS2__
    246         if (!tdb && !createDbCmd) {
    247 #else
    248241        if (!tdb) {
    249 #endif
    250242                printf("Could not open %s: %s\n", tdbname, strerror(errno));
    251243        }
     
    573565        int cmd_len;
    574566
    575 #ifdef __OS2__
    576     if (cmdname) {
    577 #endif
    578567        if (cmdname && strlen(cmdname) == 0) {
    579568                mycmd = CMD_NEXT;
     
    588577                }
    589578        }
    590 #ifdef __OS2__
    591    }
    592 #endif
    593579
    594580        switch (mycmd) {
     
    746732        arg2 = NULL;
    747733        arg2len = 0;
    748 
    749 #ifdef __OS2__
    750         int cnt = 1;
    751         createDbCmd = false;
    752         while (argv[cnt]) {
    753                 if (strncmp("create",argv[cnt],6) == 0) {
    754                         createDbCmd = true;
    755                         break;
    756                 }
    757                 cnt++;
    758         }
    759 #endif
    760734
    761735        if (argv[1]) {
     
    798772                cmdname = argv[2];
    799773        default:
    800 #ifdef __OS2__
    801             if (argc == 3) {
    802                arg1 = convert_string(argv[1], &arg1len);
    803             }
    804 #endif
    805774                do_command();
    806775                break;
Note: See TracChangeset for help on using the changeset viewer.