From 7dc88635e1a198b522c8d28a7f95036149960976 Mon Sep 17 00:00:00 2001 From: "kevin.larke" Date: Tue, 21 Apr 2020 17:55:40 -0400 Subject: [PATCH] cwWebSock.cpp : callExpandPath() on physRootDir. --- cwWebSock.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cwWebSock.cpp b/cwWebSock.cpp index 51ea07d..b62e416 100644 --- a/cwWebSock.cpp +++ b/cwWebSock.cpp @@ -2,6 +2,7 @@ #include "cwLog.h" #include "cwCommonImpl.h" #include "cwMem.h" +#include "cwFileSys.h" #include "cwWebSock.h" #include "cwMpScNbQueue.h" @@ -332,10 +333,10 @@ cw::rc_t cw::websock::create( p->_mount = mem::allocZ(1); p->_mount->mountpoint = slash; p->_mount->mountpoint_len = strlen(slash); - p->_mount->origin = mem::allocStr(physRootDir); // physical directory assoc'd with http "/" + p->_mount->origin = filesys::expandPath(physRootDir); // physical directory assoc'd with http "/" p->_mount->def = mem::allocStr(dfltHtmlPageFn); p->_mount->origin_protocol= LWSMPRO_FILE; - + memset(&info,0,sizeof(info)); info.port = port; info.mounts = p->_mount;