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.8.0_pre1^2~4003 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1043c7ce7d68409c1debfada0a92c96a94a8980b;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: Idfae9e3f44380cbce49d77fff22bee15dc4856ce Reviewed-on: http://gerrit.openafs.org/4333 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 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: