mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 04:12:05 +00:00
do not create Win32 drive letter in ngx_create_full_path()
This commit is contained in:
parent
e58700d3b0
commit
d0188e09af
1 changed files with 7 additions and 1 deletions
|
|
@ -183,7 +183,13 @@ ngx_create_full_path(u_char *dir, ngx_uint_t access)
|
|||
u_char *p, ch;
|
||||
ngx_err_t err;
|
||||
|
||||
for (p = dir + 1; *p; p++) {
|
||||
#if (NGX_WIN32)
|
||||
p = dir + 3;
|
||||
#else
|
||||
p = dir + 1;
|
||||
#endif
|
||||
|
||||
for ( /* void */ ; *p; p++) {
|
||||
ch = *p;
|
||||
|
||||
if (ch != '/') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue