Date: 15 Jun 1999 16:17:46 -0400 From: Lowell Gilbert <lowell@world.std.com> To: Kris Kirby <kris@airnet.net> Cc: freebsd-questions@freebsd.org Subject: Re: MAKEDEV cd1? Message-ID: <rd6909l6wwk.fsf@world.std.com> In-Reply-To: Kris Kirby's message of Tue, 15 Jun 1999 13:02:55 -0500 References: <3766954F.1A53401A@airnet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?rd6909l6wwk.fsf>