From: Jeffrey Altman Date: Wed, 4 Jun 2008 09:02:21 +0000 (+0000) Subject: windows-btree-short-name-20080604 X-Git-Tag: openafs-devel-1_5_61~1060 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b5d888ed404840e5a25a26880daaf47ab415b282;p=packages%2Fo%2Fopenafs.git windows-btree-short-name-20080604 LICENSE MIT When constructing the shortname keyed entry in the tree, make sure that the original long name is preserved. --- diff --git a/src/WINNT/afsd/cm_btree.c b/src/WINNT/afsd/cm_btree.c index 07f23cfe1..1b262c76f 100644 --- a/src/WINNT/afsd/cm_btree.c +++ b/src/WINNT/afsd/cm_btree.c @@ -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); }