From owner-freebsd-questions Tue Jun 15 13:17:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from europe.std.com (europe.std.com [199.172.62.20]) by hub.freebsd.org (Postfix) with ESMTP id D1D7215429 for ; Tue, 15 Jun 1999 13:17:48 -0700 (PDT) (envelope-from lowell@world.std.com) Received: from world.std.com by europe.std.com (STD1.2/BZS-8-1.0) id QAA22775; Tue, 15 Jun 1999 16:17:47 -0400 (EDT) Received: by world.std.com (TheWorld/Spike-2.0) id AA22146; Tue, 15 Jun 1999 16:17:47 -0400 To: Kris Kirby Cc: freebsd-questions@freebsd.org Subject: Re: MAKEDEV cd1? References: <3766954F.1A53401A@airnet.net> From: Lowell Gilbert Date: 15 Jun 1999 16:17:46 -0400 In-Reply-To: Kris Kirby's message of Tue, 15 Jun 1999 13:02:55 -0500 Message-Id: Lines: 18 X-Mailer: Gnus v5.5/Emacs 20.2 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hmm. Looks like an off-by-one error in MAKEDEV to me. Based on the assumption that "sh MAKEDEV cd2" should make cd0, cd1, and cd2, I think this patch is correct: #diff -u MAKEDEV.orig MAKEDEV --- MAKEDEV.orig Tue Jun 15 16:07:02 1999 +++ MAKEDEV Tue Jun 15 16:06:36 1999 @@ -672,7 +672,7 @@ if [ "${units}" -le 31 ]; then eval `echo ${chr} ${blk} ${units} ${name} |awk \ '{ c=$1; b=$2; n=$3; name=$4;} END{ - for (i = 0; i < n; i++){ + for (i = 0; i <= n; i++){ printf("rm -f %s%d* r%s%d*; \ mknod %s%da b %d %d; \ mknod %s%dc b %d %d; \ # To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message