From: Jeffrey Altman Date: Fri, 25 Mar 2011 12:58:20 +0000 (-0400) Subject: Windows: trailing dot not part of volume name X-Git-Tag: upstream/1.6.0.pre4^2~9 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=696fbd86b6f3a864439d72a2b3a55052e2e251cb;p=packages%2Fo%2Fopenafs.git 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 --- 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: