Ignore:
Timestamp:
Mar 12, 2008, 9:08:18 AM (18 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.28a

Location:
branches/samba-3.0/source/rpc_server
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/rpc_server/srv_lsa_nt.c

    r44 r124  
    10331033}
    10341034
     1035static int lsa_lookup_level_to_flags(uint16 level)
     1036{
     1037        int flags;
     1038
     1039        switch (level) {
     1040                case 1:
     1041                        flags = LOOKUP_NAME_ALL;
     1042                        break;
     1043                case 2:
     1044                        flags = LOOKUP_NAME_DOMAIN|LOOKUP_NAME_REMOTE|LOOKUP_NAME_ISOLATED;
     1045                        break;
     1046                case 3:
     1047                        flags = LOOKUP_NAME_DOMAIN|LOOKUP_NAME_ISOLATED;
     1048                        break;
     1049                case 4:
     1050                case 5:
     1051                case 6:
     1052                default:
     1053                        flags = LOOKUP_NAME_NONE;
     1054                        break;
     1055        }
     1056
     1057        return flags;
     1058}
     1059
    10351060/***************************************************************************
    10361061lsa_reply_lookup_names
     
    10521077        }
    10531078               
    1054         /* Probably the lookup_level is some sort of bitmask. */
    1055         if (q_u->lookup_level == 1) {
    1056                 flags = LOOKUP_NAME_ALL;
    1057         }
     1079        flags = lsa_lookup_level_to_flags(q_u->lookup_level);
    10581080
    10591081        ref = TALLOC_ZERO_P(p->mem_ctx, DOM_R_REF);
     
    11211143                DEBUG(5,("_lsa_lookup_names2: truncating name lookup list to %d\n", num_entries));
    11221144        }
    1123                
    1124         /* Probably the lookup_level is some sort of bitmask. */
    1125         if (q_u->lookup_level == 1) {
    1126                 flags = LOOKUP_NAME_ALL;
    1127         }
     1145
     1146        flags = lsa_lookup_level_to_flags(q_u->lookup_level);
    11281147
    11291148        ref = TALLOC_ZERO_P(p->mem_ctx, DOM_R_REF);
  • branches/samba-3.0/source/rpc_server/srv_samr_nt.c

    r62 r124  
    25082508
    25092509        become_root();
    2510         /* Lookup in our local databases (only LOOKUP_NAME_ISOLATED set)
     2510        /* Lookup in our local databases (LOOKUP_NAME_REMOTE not set)
    25112511         * whether the name already exists */
    2512         result = lookup_name(mem_ctx, new_name, LOOKUP_NAME_ISOLATED,
     2512        result = lookup_name(mem_ctx, new_name, LOOKUP_NAME_LOCAL,
    25132513                             NULL, NULL, NULL, &type);
    25142514        unbecome_root();
  • branches/samba-3.0/source/rpc_server/srv_spoolss_nt.c

    r62 r124  
    14041404        len = unistrlen(devmode->formname.buffer);
    14051405        if (len != -1) {
    1406                 d->devicename.buffer = TALLOC_ARRAY(ctx, uint16, len);
    1407                 if (!d->devicename.buffer) {
     1406                d->formname.buffer = TALLOC_ARRAY(ctx, uint16, len);
     1407                if (!d->formname.buffer) {
    14081408                        return NULL;
    14091409                }
  • branches/samba-3.0/source/rpc_server/srv_srvsvc_nt.c

    r65 r124  
    206206static uint32 get_share_type(int snum)
    207207{
    208         char *net_name = lp_servicename(snum);
    209         int len_net_name = strlen(net_name);
    210        
    211208        /* work out the share type */
    212209        uint32 type = STYPE_DISKTREE;
     
    216213        if (strequal(lp_fstype(snum), "IPC"))
    217214                type = STYPE_IPC;
    218         if (net_name[len_net_name-1] == '$')
     215        if (lp_administrative_share(snum))
    219216                type |= STYPE_HIDDEN;
    220217
Note: See TracChangeset for help on using the changeset viewer.