From: rlewczuk Date: Sat, 20 Apr 2002 19:05:12 +0000 (+0000) Subject: Opened fork numbering bugfix X-Git-Tag: point-did-cleanup~115 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=1e00f1300e0913039c8cffcb83f40e71e25dcdbf;p=netatalk.git Opened fork numbering bugfix --- diff --git a/etc/afpd/ofork.c b/etc/afpd/ofork.c index 30601201..c666d4b8 100644 --- a/etc/afpd/ofork.c +++ b/etc/afpd/ofork.c @@ -1,5 +1,5 @@ /* - * $Id: ofork.c,v 1.11 2002-03-24 01:23:41 sibaz Exp $ + * $Id: ofork.c,v 1.12 2002-04-20 19:05:12 rlewczuk Exp $ * * Copyright (c) 1996 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -238,7 +238,7 @@ struct adouble *ad; } strncpy( of->of_name, path, of->of_namelen = MACFILELEN + 1); *ofrefnum = refnum; - of->of_refnum = of_refnum; + of->of_refnum = refnum; of_hash(of); if (eid == ADEID_DFORK) @@ -287,7 +287,7 @@ struct ofork *of; of->of_dir->d_ofork = (of == of->of_d_next) ? NULL : of->of_d_next; } - oforks[ of->of_refnum ] = NULL; + oforks[ of->of_refnum % nforks ] = NULL; free( of->of_name ); /* decrease refcount */