mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
do not create Win32 drive letter in ngx_create_full_path()
This commit is contained in:
parent
e58700d3b0
commit
d0188e09af
@ -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…
Reference in New Issue
Block a user