Ignore:
Timestamp:
Jan 15, 2010, 8:23:30 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.10 (source)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/utils/net_rpc.c

    r342 r370  
    59855985        struct lsa_DomainList dom_list;
    59865986        fstring pdc_name;
     5987        bool found_domain;
    59875988
    59885989        /* trusting domains listing variables */
     
    60696070        d_printf("Trusted domains list:\n\n");
    60706071
     6072        found_domain = false;
     6073
    60716074        do {
    60726075                nt_status = rpccli_lsa_EnumTrustDom(pipe_hnd, mem_ctx,
     
    60866089                        print_trusted_domain(dom_list.domains[i].sid,
    60876090                                             dom_list.domains[i].name.string);
     6091                        found_domain = true;
    60886092                };
    60896093
    6090                 /*
    6091                  * in case of no trusted domains say something rather
    6092                  * than just display blank line
    6093                  */
    6094                 if (!dom_list.count) d_printf("none\n");
    6095 
    60966094        } while (NT_STATUS_EQUAL(nt_status, STATUS_MORE_ENTRIES));
     6095
     6096        /*
     6097         * in case of no trusted domains say something rather
     6098         * than just display blank line
     6099         */
     6100        if (!found_domain) {
     6101                d_printf("none\n");
     6102        }
    60976103
    60986104        /* close this connection before doing next one */
     
    61586164         */
    61596165
     6166        found_domain = false;
     6167
    61606168        enum_ctx = 0;   /* reset enumeration context from last enumeration */
    61616169        do {
     
    61806188                        char *str = CONST_DISCARD(char *, trusts->entries[i].name.string);
    61816189
     6190                        found_domain = true;
     6191
    61826192                        /*
    61836193                         * get each single domain's sid (do we _really_ need this ?):
     
    62256235                };
    62266236
    6227                 if (!num_domains) d_printf("none\n");
    6228 
    62296237        } while (NT_STATUS_EQUAL(nt_status, STATUS_MORE_ENTRIES));
     6238
     6239        if (!found_domain) {
     6240                d_printf("none\n");
     6241        }
    62306242
    62316243        /* close opened samr and domain policy handles */
Note: See TracChangeset for help on using the changeset viewer.