comparison src/core/ngx_file.c @ 3201:5fae6f9085e1

do not create Win32 drive letter in ngx_create_full_path()
author Igor Sysoev <igor@sysoev.ru>
date Wed, 14 Oct 2009 11:36:16 +0000
parents f9d97311c652
children 121fae8c673c
comparison
equal deleted inserted replaced
3200:26784c34e8be 3201:5fae6f9085e1
181 ngx_create_full_path(u_char *dir, ngx_uint_t access) 181 ngx_create_full_path(u_char *dir, ngx_uint_t access)
182 { 182 {
183 u_char *p, ch; 183 u_char *p, ch;
184 ngx_err_t err; 184 ngx_err_t err;
185 185
186 for (p = dir + 1; *p; p++) { 186 #if (NGX_WIN32)
187 p = dir + 3;
188 #else
189 p = dir + 1;
190 #endif
191
192 for ( /* void */ ; *p; p++) {
187 ch = *p; 193 ch = *p;
188 194
189 if (ch != '/') { 195 if (ch != '/') {
190 continue; 196 continue;
191 } 197 }