]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
vol: construct proper VolDir path on Windows
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 15 Jan 2011 16:54:40 +0000 (11:54 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Sat, 15 Jan 2011 23:40:12 +0000 (15:40 -0800)
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>
src/vol/namei_ops.c

index 9fc1d63a28ea976b167c18a885168b35250bb4db..897c5e72d025de10268c873a318ff5f65fa391a0 100644 (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;