From 0d1335ad7104a6fa67525b84d70a33e7bb1b6c6a Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 4 Mar 2011 11:04:40 -0500 Subject: [PATCH] Windows: mp target trailing dot not part vol name Instead of passing "root.cell." into cm_FreelanceAddMount pass in "root.cell" and add the trailing dot within the function. Change-Id: I5d27c6c34a3197a451491a0bbdf6c854394ce572 Reviewed-on: http://gerrit.openafs.org/4124 Tested-by: BuildBot Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/WINNT/afsd/cm_freelance.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/WINNT/afsd/cm_freelance.c b/src/WINNT/afsd/cm_freelance.c index c8498ed..d367b1b 100644 --- a/src/WINNT/afsd/cm_freelance.c +++ b/src/WINNT/afsd/cm_freelance.c @@ -590,9 +590,9 @@ long cm_InitLocalMountPoints() { code = cm_GetRootCellName(&rootCellName[1]); if (code == 0) { lock_ReleaseMutex(&cm_Freelance_Lock); - cm_FreelanceAddMount(&rootCellName[1], &rootCellName[1], "root.cell.", 0, NULL); - cm_FreelanceAddMount(rootCellName, &rootCellName[1], "root.cell.", 1, NULL); - cm_FreelanceAddMount(".root", &rootCellName[1], "root.afs.", 1, NULL); + cm_FreelanceAddMount(&rootCellName[1], &rootCellName[1], "root.cell", 0, NULL); + cm_FreelanceAddMount(rootCellName, &rootCellName[1], "root.cell", 1, NULL); + cm_FreelanceAddMount(".root", &rootCellName[1], "root.afs", 1, NULL); lock_ObtainMutex(&cm_Freelance_Lock); dwMountPoints = 3; } @@ -791,9 +791,9 @@ long cm_InitLocalMountPoints() { code = cm_GetRootCellName(&rootCellName[1]); if (code == 0) { lock_ReleaseMutex(&cm_Freelance_Lock); - cm_FreelanceAddMount(&rootCellName[1], &rootCellName[1], "root.cell.", 0, NULL); - cm_FreelanceAddMount(rootCellName, &rootCellName[1], "root.cell.", 1, NULL); - cm_FreelanceAddMount(".root", &rootCellName[1], "root.afs.", 1, NULL); + cm_FreelanceAddMount(&rootCellName[1], &rootCellName[1], "root.cell", 0, NULL); + cm_FreelanceAddMount(rootCellName, &rootCellName[1], "root.cell", 1, NULL); + cm_FreelanceAddMount(".root", &rootCellName[1], "root.afs", 1, NULL); lock_ObtainMutex(&cm_Freelance_Lock); } return 0; @@ -1117,9 +1117,9 @@ long cm_FreelanceAddMount(char *filename, char *cellname, char *volume, int rw, ); if (rw) - sprintf(line, "%s%%%s:%s", filename, fullname, volume); + sprintf(line, "%s%%%s:%s.", filename, fullname, volume); else - sprintf(line, "%s#%s:%s", filename, fullname, volume); + sprintf(line, "%s#%s:%s.", filename, fullname, volume); /* If we are adding a new value, there must be an unused name * within the range 0 to dwMountPoints @@ -1163,9 +1163,9 @@ long cm_FreelanceAddMount(char *filename, char *cellname, char *volume, int rw, fprintf(fp, "%d", n); fseek(fp, 0, SEEK_END); if (rw) - fprintf(fp, "%s%%%s:%s\n", filename, fullname, volume); + fprintf(fp, "%s%%%s:%s.\n", filename, fullname, volume); else - fprintf(fp, "%s#%s:%s\n", filename, fullname, volume); + fprintf(fp, "%s#%s:%s.\n", filename, fullname, volume); fclose(fp); } -- 1.9.4