From 696fbd86b6f3a864439d72a2b3a55052e2e251cb Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 25 Mar 2011 08:58:20 -0400 Subject: [PATCH] Windows: trailing dot not part of volume name When dynamically adding new cell mount points to the Freelance directory do not include a trailing dot when specifying the root.cell volume name. Change-Id: I23e47791b412f8f6260ca921daaf0200b19f4179 Reviewed-on: http://gerrit.openafs.org/4334 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsd/cm_vnodeops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsd/cm_vnodeops.c b/src/WINNT/afsd/cm_vnodeops.c index ca533ea63..b7692c099 100644 --- a/src/WINNT/afsd/cm_vnodeops.c +++ b/src/WINNT/afsd/cm_vnodeops.c @@ -1176,7 +1176,7 @@ notfound: if (cnamep[0] == '.') { if (cm_GetCell_Gen(&fnamep[1], &fullname[1], CM_FLAG_CREATE)) { found = 1; - code = cm_FreelanceAddMount(fullname, &fullname[1], "root.cell.", 1, &rock.fid); + code = cm_FreelanceAddMount(fullname, &fullname[1], "root.cell", 1, &rock.fid); if ( cm_FsStrCmpI(&fnamep[1], &fullname[1])) { /* * Do not permit symlinks that are one of: @@ -1201,7 +1201,7 @@ notfound: } else { if (cm_GetCell_Gen(fnamep, fullname, CM_FLAG_CREATE)) { found = 1; - code = cm_FreelanceAddMount(fullname, fullname, "root.cell.", 0, &rock.fid); + code = cm_FreelanceAddMount(fullname, fullname, "root.cell", 0, &rock.fid); if ( cm_FsStrCmpI(fnamep, fullname)) { /* * Do not permit symlinks that are one of: -- 2.39.5