Corrected a problem with the last commit, in which the check for

no common directory components between parent and child should have
been outside the while loop.
This commit is contained in:
Tim Edwards 2020-09-04 11:10:44 -04:00
parent 1ef4190589
commit 05950b16ea
1 changed files with 5 additions and 3 deletions

View File

@ -3174,10 +3174,12 @@ dbWriteCellFunc(cellUse, cdarg)
else
break;
/* If there are no common components, then restore the leading '/' */
if ((*pathorigin == '/') && (pathstart == pathorigin + 1))
pathstart = pathorigin;
}
/* If there are no common components, then restore the leading '/' */
if ((*pathorigin == '/') && (pathstart == pathorigin + 1))
pathstart = pathorigin;
if (pathend != NULL)
{
*pathend = '\0';