mirror of
https://github.com/nginx/nginx.git
synced 2025-06-28 02:02:50 +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;
|
u_char *p, ch;
|
||||||
ngx_err_t err;
|
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;
|
ch = *p;
|
||||||
|
|
||||||
if (ch != '/') {
|
if (ch != '/') {
|
||||||
|
Loading…
Reference in New Issue
Block a user