Ignore:
Timestamp:
Jul 2, 2013, 7:27:06 PM (12 years ago)
Author:
Herwig Bauernfeind
Message:

Samba Server 3.5: Update branch to 3.5.20

Location:
branches/samba-3.5.x/source3/smbd
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/smbd/dosmode.c

    r599 r773  
    374374                return False;
    375375        }
     376        DEBUG(10,("set_ea_dos_attributes: %d",sizeof(dosattrib)));
    376377
    377378        ZERO_STRUCT(dosattrib);
  • branches/samba-3.5.x/source3/smbd/lanman.c

    r414 r773  
    850850        char *p = skip_string(param,tpscnt,str2);
    851851        char *QueueName = p;
     852        fstring share_name;
    852853        unsigned int uLevel;
    853854        int count=0;
     
    900901        }
    901902
    902         snum = find_service(QueueName);
     903        snum = find_service(QueueName, share_name);
    903904        if ( !(lp_snum_ok(snum) && lp_print_ok(snum)) )
    904905                return False;
     
    19301931        int uLevel = get_safe_SVAL(param,tpscnt,p,0,-1);
    19311932        int snum;
     1933        fstring share_name;
    19321934
    19331935        if (!str1 || !str2 || !netname || !p) {
     
    19351937        }
    19361938
    1937         snum = find_service(netname);
     1939        snum = find_service(netname, share_name);
    19381940        if (snum < 0) {
    19391941                return False;
     
    21272129        }
    21282130        pull_ascii_fstring(sharename,data);
    2129         snum = find_service(sharename);
     2131        snum = find_service(sharename, sharename);
    21302132        if (snum >= 0) { /* already exists */
    21312133                res = ERRfilexists;
     
    41854187        print_queue_struct *queue=NULL;
    41864188        print_status_struct status;
     4189        fstring share_name;
    41874190
    41884191        if (!str1 || !str2 || !p) {
     
    42144217        }
    42154218
    4216         snum = find_service(name);
     4219        snum = find_service(name, share_name);
    42174220        if ( !(lp_snum_ok(snum) && lp_print_ok(snum)) ) {
    42184221                return False;
     
    43354338        char *p = skip_string(param,tpscnt,str2);
    43364339        char* PrinterName = p;
     4340        fstring share_name;
    43374341        int uLevel;
    43384342        struct pack_desc desc;
     
    43624366        }
    43634367
    4364         snum = find_service(PrinterName);
     4368        snum = find_service(PrinterName, share_name);
    43654369        if ( !(lp_snum_ok(snum) && lp_print_ok(snum)) ) {
    43664370                *rdata_len = 0;
  • branches/samba-3.5.x/source3/smbd/msdfs.c

    r732 r773  
    823823        if(snum < 0) {
    824824                fstring service_name;
    825                 fstrcpy(service_name, jucn->service_name);
    826                 if ((snum = find_service(service_name)) < 0) {
     825                if ((snum = find_service(jucn->service_name, service_name)) < 0) {
    827826                        return NT_STATUS_NOT_FOUND;
    828827                }
  • branches/samba-3.5.x/source3/smbd/posix_acls.c

    r739 r773  
    13601360                if (pace->type == SMB_ACL_USER_OBJ) {
    13611361
    1362                         if (setting_acl && !is_default_acl) {
     1362                        if (setting_acl) {
     1363                                /*
     1364                                 * Ensure we have default parameters for the
     1365                                 * user (owner) even on default ACLs.
     1366                                 */
    13631367                                apply_default_perms(params, is_directory, pace, S_IRUSR);
    13641368                        }
     
    14401444                        }
    14411445
    1442                         if (!is_default_acl) {
    1443                                 apply_default_perms(params, is_directory, pace, S_IRUSR);
    1444                         }
     1446                        /*
     1447                         * Ensure we have default parameters for the
     1448                         * user (owner) even on default ACLs.
     1449                         */
     1450                        apply_default_perms(params, is_directory, pace, S_IRUSR);
    14451451                } else {
    14461452                        pace->perms = unix_perms_to_acl_perms(pst->st_ex_mode, S_IRUSR, S_IWUSR, S_IXUSR);
  • branches/samba-3.5.x/source3/smbd/service.c

    r736 r773  
    306306 * Find a service entry.
    307307 *
    308  * @param service is modified (to canonical form??)
     308 * @param service_in is modified (to canonical form??)
     309 * and returned in return parameter service.
    309310 **/
    310311
    311 int find_service(fstring service)
     312int find_service(const char *service_in, fstring service)
    312313{
    313314        int iService;
    314315        struct smbd_server_connection *sconn = smbd_server_conn;
    315316
     317        if (!service_in) {
     318                return -1;
     319        }
     320
     321        fstrcpy(service, service_in);
    316322        all_string_sub(service,"\\","/",0);
    317323
     
    400406                        }
    401407
    402                         iService = find_service(defservice);
     408                        iService = find_service(defservice, service);
    403409                        if (iService >= 0) {
    404410                                all_string_sub(service, "_","/",0);
     
    11831189                                        current_user_info.smb_name);
    11841190                                map_username(sconn, unix_username);
    1185                                 snum = find_service(unix_username);
     1191                                snum = find_service(unix_username, unix_username);
    11861192                        }
    11871193                        if (snum != -1) {
     
    12111217        strlower_m(service);
    12121218
    1213         snum = find_service(service);
     1219        snum = find_service(service, service);
    12141220
    12151221        if (snum < 0) {
  • branches/samba-3.5.x/source3/smbd/smb2_tcon.c

    r414 r773  
    168168        strlower_m(service);
    169169
    170         snum = find_service(service);
     170        snum = find_service(service, service);
    171171        if (snum < 0) {
    172172                DEBUG(3,("smbd_smb2_tree_connect: couldn't find service %s\n",
Note: See TracChangeset for help on using the changeset viewer.