comparison src/core/ngx_file.c @ 10:46833bd150cb NGINX_0_1_5

nginx 0.1.5 *) Bugfix: on Solaris and Linux there may be too many "recvmsg() returned not enough data" alerts. *) Bugfix: there were the "writev() failed (22: Invalid argument)" errors on Solaris in proxy mode without sendfile. On other platforms that do not support sendfile at all the process got caught in an endless loop. *) Bugfix: segmentation fault on Solaris in proxy mode and using sendfile. *) Bugfix: segmentation fault on Solaris. *) Bugfix: on-line upgrade did not work on Linux. *) Bugfix: the ngx_http_autoindex_module module did not escape the spaces, the quotes, and the percent signs in the directory listing. *) Change: the decrease of the copy operations. *) Feature: the userid_p3p directive.
author Igor Sysoev <http://sysoev.ru>
date Thu, 11 Nov 2004 00:00:00 +0300
parents f0b350454894
children 74b1868dd3cd
comparison
equal deleted inserted replaced
9:77eee314ddbd 10:46833bd150cb
53 ngx_memcpy(file->name.data, path->name.data, path->name.len); 53 ngx_memcpy(file->name.data, path->name.data, path->name.len);
54 54
55 num = ngx_next_temp_number(0); 55 num = ngx_next_temp_number(0);
56 56
57 for ( ;; ) { 57 for ( ;; ) {
58 ngx_snprintf((char *) 58 ngx_sprintf(file->name.data + path->name.len + 1 + path->len,
59 (file->name.data + path->name.len + 1 + path->len), 59 "%010ud%Z", num);
60 11, "%010u", num);
61 60
62 ngx_create_hashed_filename(file, path); 61 ngx_create_hashed_filename(file, path);
63 62
64 #if 1 63 #if 1
65 file->fd = ngx_open_tempfile(file->name.data, persistent); 64 file->fd = ngx_open_tempfile(file->name.data, persistent);
81 continue; 80 continue;
82 } 81 }
83 82
84 if ((path->level[0] == 0) 83 if ((path->level[0] == 0)
85 || (err != NGX_ENOENT 84 || (err != NGX_ENOENT
86 #if (WIN32) 85 #if (NGX_WIN32)
87 && err != NGX_ENOTDIR 86 && err != NGX_ENOTDIR
88 #endif 87 #endif
89 )) { 88 )) {
90 ngx_log_error(NGX_LOG_CRIT, file->log, err, 89 ngx_log_error(NGX_LOG_CRIT, file->log, err,
91 ngx_open_tempfile_n " \"%s\" failed", 90 ngx_open_tempfile_n " \"%s\" failed",