From 1043c7ce7d68409c1debfada0a92c96a94a8980b 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: Idfae9e3f44380cbce49d77fff22bee15dc4856ce Reviewed-on: http://gerrit.openafs.org/4333 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 25dff6c39..fec69c468 100644 --- a/src/WINNT/afsd/cm_vnodeops.c +++ b/src/WINNT/afsd/cm_vnodeops.c @@ -1179,7 +1179,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: @@ -1204,7 +1204,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