Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 May 2000 11:31:30 +0300
From:      Maxim Sobolev <sobomax@altavista.net>
To:        current@freebsd.org
Cc:        stable@freebsd.org
Subject:   Small MAKEDEV bug
Message-ID:  <3913D862.960037A1@altavista.net>

next in thread | raw e-mail | index | archive | help
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-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3913D862.960037A1>