Commit fc3addb6 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Use new 'vdir' elements in getdir_from_vpath()

parent 51ab0a7f
Pipeline #2636 passed with stage
in 10 minutes and 56 seconds
......@@ -3832,7 +3832,7 @@ int getdir_from_vpath(scfg_t* cfg, const char* p, user_t* user, client_t* client
for(lib=0;lib<cfg->total_libs;lib++) {
if(!chk_ar(cfg,cfg->lib[lib]->ar,user,client))
continue;
if(!stricmp(cfg->lib[lib]->sname,p))
if(!stricmp(cfg->lib[lib]->vdir,p))
break;
}
if(lib>=cfg->total_libs)
......@@ -3849,7 +3849,7 @@ int getdir_from_vpath(scfg_t* cfg, const char* p, user_t* user, client_t* client
if((!include_upload_only || (dir!=cfg->sysop_dir && dir!=cfg->upload_dir))
&& !chk_ar(cfg,cfg->dir[dir]->ar,user,client))
continue;
if(!stricmp(cfg->dir[dir]->code_suffix,p))
if(!stricmp(cfg->dir[dir]->vdir,p))
break;
}
if(dir>=cfg->total_dirs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment