Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2001 20:11:13 -0500 (EST)
From:      Adrian Filipi-Martin <adrian@ubergeeks.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/33158: sh expr cleanup in MAKEDEV
Message-ID:  <200112250111.fBP1BDo70474@mail.ubergeeks.com>

next in thread | raw e-mail | index | archive | help

>Number:         33158
>Category:       bin
>Synopsis:       sh expr cleanup in MAKEDEV
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 24 17:20:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Adrian Filipi-Martin
>Release:        FreeBSD 4.5-PRERELEASE i386
>Organization:
Ubergeeks Consulting
>Environment:
System: FreeBSD lorax.ubergeeks.com 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #16: Sat Dec 22 13:54:55 EST 2001 root@lorax.ubergeeks.com:/usr/obj/usr/src/sys/LORAX i386

>Description:
	When the MAKEDEV script was converted from extensive use
	of the expr(1) command to using sh builtin $((expr))
	arithmatic, a couple of no longer needed escapes of some
	operator characters were missed.

>How-To-Repeat:
	Look at the code.
>Fix:
	Apply this patch.


--- MAKEDEV.orig	Mon Dec 24 20:03:43 2001
+++ MAKEDEV	Mon Dec 24 20:04:23 2001
@@ -1599,8 +1599,8 @@
 	*c) unit=12;;	*d) unit=13;;	*e) unit=14;;	*f) unit=15;;
 	esac
 	case $i in
-	ttyy?)  unit=$(($unit \+ 16));;
-	ttyz?)  unit=$(($unit \+ 32));;
+	ttyy?)  unit=$(($unit + 16));;
+	ttyz?)  unit=$(($unit + 32));;
 	esac
 	mknod $i c 42 $unit
 	;;
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112250111.fBP1BDo70474>