From: jmarcus Date: Fri, 18 Jan 2002 05:19:26 +0000 (+0000) Subject: Change the first CNID from 3 to 17. According to the AFP 3.0 spec on page X-Git-Tag: point-backport-1-5-2~98 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=8c50a12261d5bb169deb93a9dde2e2634158d39c Change the first CNID from 3 to 17. According to the AFP 3.0 spec on page 31 of the PDF file, DIDs 1 through 16 are reserved. --- diff --git a/etc/afpd/volume.c b/etc/afpd/volume.c index 2bc3192c..83e5ffba 100644 --- a/etc/afpd/volume.c +++ b/etc/afpd/volume.c @@ -1,5 +1,5 @@ /* - * $Id: volume.c,v 1.18 2002-01-04 04:45:47 sibaz Exp $ + * $Id: volume.c,v 1.19 2002-01-18 05:19:26 jmarcus Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -462,7 +462,7 @@ static int creatvol(const char *path, char *name, struct vol_option *options) volume->v_qfd = -1; #endif /* __svr4__ */ volume->v_vid = lastvid++; - volume->v_lastdid = 3; + volume->v_lastdid = 17; /* handle options */ if (options) { diff --git a/libatalk/cnid/cnid_private.h b/libatalk/cnid/cnid_private.h index eb104e25..8316259b 100644 --- a/libatalk/cnid/cnid_private.h +++ b/libatalk/cnid/cnid_private.h @@ -1,5 +1,5 @@ /* - * $Id: cnid_private.h,v 1.5 2001-12-14 03:10:37 jmarcus Exp $ + * $Id: cnid_private.h,v 1.6 2002-01-18 05:19:26 jmarcus Exp $ */ #ifndef LIBATALK_CNID_PRIVATE_H @@ -24,7 +24,7 @@ #define CNID_DID_LEN 4 #define CNID_HEADER_LEN (CNID_DEVINO_LEN + CNID_DID_LEN) -#define CNID_START 3 +#define CNID_START 17 #define CNIDFLAG_ROOTINFO_RO (1 << 0) #define CNIDFLAG_DB_RO (1 << 1)