From 765b667c048df93c5d3d9864dbebafa0a44c23a8 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Thu, 27 Jan 2022 22:49:40 -0800
Subject: [PATCH] Use new 'vdir' elements in getdir_from_vpath()

---
 src/sbbs3/userdat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/userdat.c b/src/sbbs3/userdat.c
index c0b26373e9..23ea41c2fd 100644
--- a/src/sbbs3/userdat.c
+++ b/src/sbbs3/userdat.c
@@ -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) 
-- 
GitLab