mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
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:
parent
bae39a9aa3
commit
a65ea91e2a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user