From 143b9605da0ca01b5af80a7884386c3b57b70834 Mon Sep 17 00:00:00 2001 From: didg Date: Thu, 29 Oct 2009 09:47:11 +0000 Subject: [PATCH] use the parent directory id in the hash --- etc/afpd/directory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/afpd/directory.c b/etc/afpd/directory.c index 2fabc436..085bd4d2 100644 --- a/etc/afpd/directory.c +++ b/etc/afpd/directory.c @@ -1,5 +1,5 @@ /* - * $Id: directory.c,v 1.114 2009-10-27 23:35:17 didg Exp $ + * $Id: directory.c,v 1.115 2009-10-29 09:47:11 didg Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -1074,7 +1074,7 @@ const struct dir *k = key; }; const unsigned char *str = (unsigned char *)(k->d_u_name); - hash_val_t acc = 0; + hash_val_t acc = k->d_parent->d_did; while (*str) { acc ^= randbox[(*str + acc) & 0xf]; -- 2.39.2