]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-btree-short-name-20080604
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 4 Jun 2008 09:02:21 +0000 (09:02 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 4 Jun 2008 09:02:21 +0000 (09:02 +0000)
LICENSE MIT

When constructing the shortname keyed entry in the tree, make sure that
the original long name is preserved.

src/WINNT/afsd/cm_btree.c

index 07f23cfe1a661b8d3021562aa09b94d707248c8f..1b262c76fc0c5584f232385149c1150e88941b0f 100644 (file)
@@ -1964,9 +1964,9 @@ int cm_BPlusDirFoo(struct cm_scache *scp, struct cm_dirEntry *dep,
 
         cm_Gen8Dot3NameInt(dep->name, &dfid, shortName, NULL);
 
-        key.name = shortName;
         data.longname = strdup(key.name);
         data.origname = NULL;
+        key.name = shortName;
         insert(scp->dirBplus, key, data);
     }