Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/lib/tdb/tools/tdbtool.c

    r456 r745  
    418418static void info_tdb(void)
    419419{
    420         int count;
    421         total_bytes = 0;
    422         if ((count = tdb_traverse(tdb, traverse_fn, NULL)) == -1)
     420        char *summary = tdb_summary(tdb);
     421
     422        if (!summary) {
    423423                printf("Error = %s\n", tdb_errorstr(tdb));
    424         else
    425                 printf("%d records totalling %d bytes\n", count, total_bytes);
     424        } else {
     425                printf("%s", summary);
     426                free(summary);
     427        }
    426428}
    427429
     
    574576    if (cmdname) {
    575577#endif
    576 
    577578        if (cmdname && strlen(cmdname) == 0) {
    578579                mycmd = CMD_NEXT;
Note: See TracChangeset for help on using the changeset viewer.