Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/passdb/lookup_sid.c

    r745 r751  
    14381438                if (idmap_cache_find_sid2uid(&sids[i], &ids[i].id.uid,
    14391439                                             &expired)
    1440                     && !expired) {
     1440                    && !expired && ids[i].id.uid != (uid_t)-1) {
    14411441                        ids[i].type = WBC_ID_TYPE_UID;
    14421442                        continue;
     
    14441444                if (idmap_cache_find_sid2gid(&sids[i], &ids[i].id.gid,
    14451445                                             &expired)
    1446                     && !expired) {
     1446                    && !expired && ids[i].id.gid != (gid_t)-1) {
    14471447                        ids[i].type = WBC_ID_TYPE_GID;
    14481448                        continue;
     
    14911491                }
    14921492        }
     1493
    14931494done:
     1495        for (i=0; i<num_sids; i++) {
     1496                switch(ids[i].type) {
     1497                case WBC_ID_TYPE_GID:
     1498                        if (ids[i].id.gid == (gid_t)-1) {
     1499                                ids[i].type = WBC_ID_TYPE_NOT_SPECIFIED;
     1500                        }
     1501                        break;
     1502                case WBC_ID_TYPE_UID:
     1503                        if (ids[i].id.uid == (uid_t)-1) {
     1504                                ids[i].type = WBC_ID_TYPE_NOT_SPECIFIED;
     1505                        }
     1506                        break;
     1507                case WBC_ID_TYPE_NOT_SPECIFIED:
     1508                        break;
     1509                }
     1510        }
    14941511        ret = true;
    14951512fail:
Note: See TracChangeset for help on using the changeset viewer.