comparison src/core/ngx_file.c @ 468:56baf312c1b5 NGINX_0_7_46

nginx 0.7.46 *) Bugfix: the previous release tarball was incorrect.
author Igor Sysoev <http://sysoev.ru>
date Mon, 30 Mar 2009 00:00:00 +0400
parents c8cfb6c462ef
children ed5e10fb40fc
comparison
equal deleted inserted replaced
467:d46142e61c30 468:56baf312c1b5
262 if (ngx_conf_full_name(cf->cycle, &path->name, 0) != NGX_OK) { 262 if (ngx_conf_full_name(cf->cycle, &path->name, 0) != NGX_OK) {
263 return NULL; 263 return NULL;
264 } 264 }
265 265
266 path->len = 0; 266 path->len = 0;
267 path->cleaner = (ngx_path_cleaner_pt) cmd->post; 267 path->manager = (ngx_path_manager_pt) cmd->post;
268 path->conf_file = cf->conf_file->file.name.data; 268 path->conf_file = cf->conf_file->file.name.data;
269 path->line = cf->conf_file->line; 269 path->line = cf->conf_file->line;
270 270
271 for (i = 0, n = 2; n < cf->args->nelts; i++, n++) { 271 for (i = 0, n = 2; n < cf->args->nelts; i++, n++) {
272 level = ngx_atoi(value[n].data, value[n].len); 272 level = ngx_atoi(value[n].data, value[n].len);
322 322
323 (*path)->len = init->level[0] + (init->level[0] ? 1 : 0) 323 (*path)->len = init->level[0] + (init->level[0] ? 1 : 0)
324 + init->level[1] + (init->level[1] ? 1 : 0) 324 + init->level[1] + (init->level[1] ? 1 : 0)
325 + init->level[2] + (init->level[2] ? 1 : 0); 325 + init->level[2] + (init->level[2] ? 1 : 0);
326 326
327 (*path)->cleaner = NULL; 327 (*path)->manager = NULL;
328 (*path)->conf_file = NULL; 328 (*path)->conf_file = NULL;
329 329
330 if (ngx_add_path(cf, path) != NGX_OK) { 330 if (ngx_add_path(cf, path) != NGX_OK) {
331 return NGX_CONF_ERROR; 331 return NGX_CONF_ERROR;
332 } 332 }