Ignore:
Timestamp:
Jul 1, 2011, 4:02:23 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update vendor to version 3.5.8

Location:
vendor/current/source3/rpc_server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/rpc_server/srv_dfs_nt.c

    r414 r594  
    7171
    7272        /* The following call can change the cwd. */
    73         status = get_referred_path(ctx, r->in.path, jn,
     73        status = get_referred_path(ctx, p->server_info, r->in.path, jn,
    7474                        &consumedcnt, &self_ref);
    7575        if(!NT_STATUS_IS_OK(status)) {
     
    137137        }
    138138
    139         if(!NT_STATUS_IS_OK(get_referred_path(ctx, r->in.dfs_entry_path, jn,
    140                                 &consumedcnt, &self_ref))) {
     139        if(!NT_STATUS_IS_OK(get_referred_path(ctx, p->server_info,
     140                                              r->in.dfs_entry_path, jn,
     141                                              &consumedcnt, &self_ref))) {
    141142                return WERR_DFS_NO_SUCH_VOL;
    142143        }
     
    359360
    360361        /* The following call can change the cwd. */
    361         if(!NT_STATUS_IS_OK(get_referred_path(ctx, r->in.dfs_entry_path,
    362                                         jn, &consumedcnt, &self_ref)) ||
     362        if(!NT_STATUS_IS_OK(get_referred_path(ctx, p->server_info,
     363                                              r->in.dfs_entry_path,
     364                                              jn, &consumedcnt, &self_ref)) ||
    363365                        consumedcnt < strlen(r->in.dfs_entry_path)) {
    364366                return WERR_DFS_NO_SUCH_VOL;
  • vendor/current/source3/rpc_server/srv_spoolss_nt.c

    r587 r594  
    141141}
    142142
     143static void prune_printername_cache(void);
     144
    143145/***************************************************************************
    144146 Disconnect from the client
     
    329331{
    330332        Printer_entry *Printer = find_printer_index_by_hnd(p, hnd);
     333        WERROR result;
    331334
    332335        if (!Printer) {
     
    356359        }
    357360
    358         return delete_printer_hook(p->mem_ctx, p->server_info->ptok,
    359                                    Printer->sharename );
     361        result = delete_printer_hook(p->mem_ctx, p->server_info->ptok,
     362                                     Printer->sharename);
     363        if (!W_ERROR_IS_OK(result)) {
     364                return result;
     365        }
     366        prune_printername_cache();
     367        return WERR_OK;
    360368}
    361369
     
    413421
    414422        return true;
     423}
     424
     425static void prune_printername_cache_fn(const char *key, const char *value,
     426                                       time_t timeout, void *private_data)
     427{
     428        gencache_del(key);
     429}
     430
     431static void prune_printername_cache(void)
     432{
     433        gencache_iterate(prune_printername_cache_fn, NULL, "PRINTERNAME/*");
    415434}
    416435
Note: See TracChangeset for help on using the changeset viewer.