msp policies stopped before root path

This commit is contained in:
Antonio SJ Musumeci 2020-12-17 19:55:49 -05:00
parent 8a335d8a6e
commit 44a98910ba
5 changed files with 24 additions and 31 deletions

View file

@ -85,15 +85,15 @@ namespace msplus
error = ENOENT;
fusepath = fusepath_;
do
for(;;)
{
basepath = msplus::create_1(branches_,fusepath,&error);
if(basepath)
break;
if(fusepath == "/")
break;
fusepath = fs::path::dirname(fusepath);
}
while(!fusepath.empty());
if(basepath == NULL)
return (errno=error,-1);