From: Jeffrey Altman Date: Sat, 15 Jan 2011 16:54:40 +0000 (-0500) Subject: vol: construct proper VolDir path on Windows X-Git-Tag: upstream/1.6.0.pre2^2~71 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e08f9d85fb4f50f6f87a500be0c7ea9b5da585e3;p=packages%2Fo%2Fopenafs.git 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. Reviewed-on: http://gerrit.openafs.org/3672 Reviewed-by: Derrick Brashear Tested-by: BuildBot (cherry picked from commit a65ea91e2a6ab3870fe2e9e1a17c82e2a62c2910) Change-Id: Icd7c6225b80d77184e6a15df0dbb4fd0dfcd0506 Reviewed-on: http://gerrit.openafs.org/3833 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/vol/namei_ops.c b/src/vol/namei_ops.c index 7d5941cc0..df990fc73 100644 --- a/src/vol/namei_ops.c +++ b/src/vol/namei_ops.c @@ -267,7 +267,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;