From 05950b16ea4274e429f1ec449976aeae72a3e2fb Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 4 Sep 2020 11:10:44 -0400 Subject: [PATCH] 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. --- database/DBio.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/database/DBio.c b/database/DBio.c index 3f662eed..76ab5a30 100644 --- a/database/DBio.c +++ b/database/DBio.c @@ -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';