comparison src/http/ngx_http_request_body.c @ 1046:bb139aba3199

rename mode to access
author Igor Sysoev <igor@sysoev.ru>
date Thu, 18 Jan 2007 19:52:18 +0000
parents 790ed4eb762e
children 9039e845e532
comparison
equal deleted inserted replaced
1045:1ade5def878d 1046:bb139aba3199
72 tf->warn = "a client request body is buffered to a temporary file"; 72 tf->warn = "a client request body is buffered to a temporary file";
73 tf->log_level = r->request_body_file_log_level; 73 tf->log_level = r->request_body_file_log_level;
74 tf->persistent = r->request_body_in_persistent_file; 74 tf->persistent = r->request_body_in_persistent_file;
75 75
76 if (r->request_body_file_group_access) { 76 if (r->request_body_file_group_access) {
77 tf->mode = 0660; 77 tf->access = 0660;
78 } 78 }
79 79
80 rb->temp_file = tf; 80 rb->temp_file = tf;
81 81
82 if (ngx_create_temp_file(&tf->file, tf->path, tf->pool, 82 if (ngx_create_temp_file(&tf->file, tf->path, tf->pool,
83 tf->persistent, tf->mode) 83 tf->persistent, tf->access)
84 != NGX_OK) 84 != NGX_OK)
85 { 85 {
86 return NGX_HTTP_INTERNAL_SERVER_ERROR; 86 return NGX_HTTP_INTERNAL_SERVER_ERROR;
87 } 87 }
88 } 88 }
398 tf->warn = "a client request body is buffered to a temporary file"; 398 tf->warn = "a client request body is buffered to a temporary file";
399 tf->log_level = r->request_body_file_log_level; 399 tf->log_level = r->request_body_file_log_level;
400 tf->persistent = r->request_body_in_persistent_file; 400 tf->persistent = r->request_body_in_persistent_file;
401 401
402 if (r->request_body_file_group_access) { 402 if (r->request_body_file_group_access) {
403 tf->mode = 0660; 403 tf->access = 0660;
404 } 404 }
405 405
406 rb->temp_file = tf; 406 rb->temp_file = tf;
407 } 407 }
408 408