From a65ea91e2a6ab3870fe2e9e1a17c82e2a62c2910 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 15 Jan 2011 11:54:40 -0500 Subject: [PATCH] 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 Tested-by: BuildBot --- src/vol/namei_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vol/namei_ops.c b/src/vol/namei_ops.c index 9fc1d63a28..897c5e72d0 100644 --- a/src/vol/namei_ops.c +++ b/src/vol/namei_ops.c @@ -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;