Ignore:
Timestamp:
Jun 7, 2010, 9:08:40 AM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: changes from 3.3

File:
1 edited

Legend:

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

    r414 r456  
    3737char cmdline[1024];
    3838static int disable_mmap;
     39
     40#ifdef __OS2__
     41static bool createDbCmd;
     42#endif
    3943
    4044enum commands {
     
    239243        tdb = tdb_open_ex(tdbname, 0, disable_mmap?TDB_NOMMAP:0, O_RDWR, 0600,
    240244                          &log_ctx, NULL);
     245#ifdef __OS2__
     246        if (!tdb && !createDbCmd) {
     247#else
    241248        if (!tdb) {
     249#endif
    242250                printf("Could not open %s: %s\n", tdbname, strerror(errno));
    243251        }
     
    563571        int cmd_len;
    564572
     573#ifdef __OS2__
     574    if (cmdname) {
     575#endif
     576
    565577        if (cmdname && strlen(cmdname) == 0) {
    566578                mycmd = CMD_NEXT;
     
    575587                }
    576588        }
     589#ifdef __OS2__
     590   }
     591#endif
    577592
    578593        switch (mycmd) {
     
    730745        arg2 = NULL;
    731746        arg2len = 0;
     747
     748#ifdef __OS2__
     749        int cnt = 1;
     750        createDbCmd = false;
     751        while (argv[cnt]) {
     752                if (strncmp("create",argv[cnt],6) == 0) {
     753                        createDbCmd = true;
     754                        break;
     755                }
     756                cnt++;
     757        }
     758#endif
    732759
    733760        if (argv[1]) {
     
    770797                cmdname = argv[2];
    771798        default:
     799#ifdef __OS2__
     800            if (argc == 3) {
     801               arg1 = convert_string(argv[1], &arg1len);
     802            }
     803#endif
    772804                do_command();
    773805                break;
Note: See TracChangeset for help on using the changeset viewer.