From owner-freebsd-current Sat May 6 1:34:24 2000 Delivered-To: freebsd-current@freebsd.org Received: from ipt2.iptelecom.net.ua (ipt2.iptelecom.net.ua [212.9.224.2]) by hub.freebsd.org (Postfix) with ESMTP id 2E98E37B784; Sat, 6 May 2000 01:34:15 -0700 (PDT) (envelope-from sobomax@altavista.net) Received: from vega.vega.com (dialup2-3.iptelecom.net.ua [212.9.226.67]) by ipt2.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id LAA21762; Sat, 6 May 2000 11:34:45 +0300 (EEST) Received: from altavista.net (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.9.3/8.9.3) with ESMTP id LAA59344; Sat, 6 May 2000 11:32:07 +0300 (EEST) (envelope-from sobomax@altavista.net) Message-ID: <3913D862.960037A1@altavista.net> Date: Sat, 06 May 2000 11:31:30 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: current@freebsd.org Cc: stable@freebsd.org Subject: Small MAKEDEV bug Content-Type: multipart/mixed; boundary="------------090F0C2492AC7357711ED90A" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------090F0C2492AC7357711ED90A Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Hi, I've just noticed that "sh MAKEDEV acd1" doesn't produce node for acd1 due to incorrect comparasion in the "while" loop. This affecting both 4.0-STABLE and 5.0-CURRENT. With this message I'm attaching short patch which should solve this little problem. -Maxim --------------090F0C2492AC7357711ED90A Content-Type: text/plain; charset=koi8-r; name="MAKEDEV.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="MAKEDEV.diff" --- MAKEDEV 2000/05/06 08:25:52 1.1 +++ MAKEDEV 2000/05/06 08:26:14 @@ -795,7 +795,7 @@ fi if [ "${units}" -le 31 ]; then i=0 - while [ $i -lt $units ]; do + while [ $i -le $units ]; do dname=$name$i rm -rf ${dname}* r${dname}* mknod ${dname}a c $chr $(($i * 8)) root:operator --------------090F0C2492AC7357711ED90A-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message