Changeset 594 for vendor/current/source3/rpc_server
- Timestamp:
- Jul 1, 2011, 4:02:23 PM (14 years ago)
- Location:
- vendor/current/source3/rpc_server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/rpc_server/srv_dfs_nt.c
r414 r594 71 71 72 72 /* 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, 74 74 &consumedcnt, &self_ref); 75 75 if(!NT_STATUS_IS_OK(status)) { … … 137 137 } 138 138 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))) { 141 142 return WERR_DFS_NO_SUCH_VOL; 142 143 } … … 359 360 360 361 /* 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)) || 363 365 consumedcnt < strlen(r->in.dfs_entry_path)) { 364 366 return WERR_DFS_NO_SUCH_VOL; -
vendor/current/source3/rpc_server/srv_spoolss_nt.c
r587 r594 141 141 } 142 142 143 static void prune_printername_cache(void); 144 143 145 /*************************************************************************** 144 146 Disconnect from the client … … 329 331 { 330 332 Printer_entry *Printer = find_printer_index_by_hnd(p, hnd); 333 WERROR result; 331 334 332 335 if (!Printer) { … … 356 359 } 357 360 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; 360 368 } 361 369 … … 413 421 414 422 return true; 423 } 424 425 static 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 431 static void prune_printername_cache(void) 432 { 433 gencache_iterate(prune_printername_cache_fn, NULL, "PRINTERNAME/*"); 415 434 } 416 435
Note:
See TracChangeset
for help on using the changeset viewer.