Mercurial > hg > nginx-quic
comparison src/core/ngx_file.c @ 175:e92c2c647c57
nginx-0.0.1-2003-11-05-20:03:41 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 05 Nov 2003 17:03:41 +0000 |
parents | c42be4185301 |
children | c1f3a3c7c5db |
comparison
equal
deleted
inserted
replaced
174:ea464a6c0581 | 175:e92c2c647c57 |
---|---|
117 | 117 |
118 if (level == 0) { | 118 if (level == 0) { |
119 break; | 119 break; |
120 } | 120 } |
121 | 121 |
122 ngx_log_debug(file->log, "temp: %s" _ file->name.data); | 122 ngx_log_debug(file->log, "hashed path: %s" _ file->name.data); |
123 | 123 |
124 name -= level; | 124 name -= level; |
125 file->name.data[pos - 1] = '/'; | 125 file->name.data[pos - 1] = '/'; |
126 ngx_memcpy(&file->name.data[pos], &file->name.data[name], level); | 126 ngx_memcpy(&file->name.data[pos], &file->name.data[name], level); |
127 pos += level + 1; | 127 pos += level + 1; |
128 } | 128 } |
129 | 129 |
130 ngx_log_debug(file->log, "temp: %s" _ file->name.data); | 130 ngx_log_debug(file->log, "hashed path: %s" _ file->name.data); |
131 } | 131 } |
132 | 132 |
133 | 133 |
134 int ngx_create_path(ngx_file_t *file, ngx_path_t *path) | 134 int ngx_create_path(ngx_file_t *file, ngx_path_t *path) |
135 { | 135 { |