vol: construct proper VolDir path on Windows

namei_HandleToInodeDir initializes the path name with
the nt_drive value.  Therefore calling addtoname(name, name->n_drive)
produces the invalid path "D:\D:\\Vol_.....".  Remove the unnecessary
addtoname() call.

Change-Id: I4933d3f4fda76050eecde3caeaa6bc30011cd974
Reviewed-on: http://gerrit.openafs.org/3672
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Jeffrey Altman 2011-01-15 11:54:40 -05:00 committed by Jeffrey Altman
parent bae39a9aa3
commit a65ea91e2a

View File

@ -269,7 +269,7 @@ namei_HandleToVolDir(namei_t * name, IHandle_t * ih)
char *namep;
namei_HandleToInodeDir(name, ih);
addtoname(name, name->n_drive);
/* nt_drive added to name by namei_HandleToInodeDir() */
namep = name->n_voldir;
(void)memcpy(namep, "\\Vol_", 5);
namep += 5;