From bms@spc.org  Wed Sep 11 05:21:58 2002
Return-Path: <bms@spc.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4CE3937B400
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Sep 2002 05:21:58 -0700 (PDT)
Received: from bigboy.spc.org (dolly.good1.com [195.206.69.225])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 75D9543E6A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Sep 2002 05:21:53 -0700 (PDT)
	(envelope-from bms@spc.org)
Message-Id: <20020911122151.2B08796AB@triage.dollah.com>
Date: Wed, 11 Sep 2002 13:21:51 +0100 (BST)
From: Bruce M Simpson <bms@spc.org>
Reply-To: Bruce M Simpson <bms@spc.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: /etc/rc.syscons: moused has malformed command line
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42657
>Category:       misc
>Synopsis:       /etc/rc.syscons: moused has malformed command line
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 11 05:30:01 PDT 2002
>Closed-Date:    Tue Sep 17 09:25:02 PDT 2002
>Last-Modified:  Tue Sep 17 09:25:02 PDT 2002
>Originator:     Bruce M Simpson
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD triage.dollah.com 4.6-STABLE FreeBSD 4.6-STABLE #4: Sat Sep 7 13:55:56 BST 2002 root@:/usr/src/sys/compile/TRIAGE i386

	
>Description:
	In rc.syscons, moused is passed incorrect command line arguments when
	several flags are specified.

>How-To-Repeat:
	If I use the following flags in rc.conf to start up moused with
	support for taps using my GlidePoint tablet on the Vaio, then
	moused doesn't start due to incorrect command line arguments:-

	moused_enable="YES"
	moused_port="/dev/psm0"
	moused_flags="-3 -m 1=4 1=1"
	moused_type="auto"

>Fix:
	The patch below corrects the problem.

--- syscons-rc-moused.patch begins here ---
--- /etc/rc.syscons.orig	Tue Sep 10 22:51:15 2002
+++ /etc/rc.syscons	Tue Sep 10 22:52:47 2002
@@ -159,7 +159,7 @@
 case ${moused_enable} in
 [Yy][Ee][Ss])
 	echo -n ' moused'
-	moused ${moused_flags} -p ${moused_port} -t ${moused_type}
+	moused -p ${moused_port} -t ${moused_type} ${moused_flags}
 	case ${mousechar_start} in
 	[Nn][Oo] | '')
 		;;
--- syscons-rc-moused.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: schweikh 
State-Changed-When: Sat Sep 14 04:33:30 PDT 2002 
State-Changed-Why:  
Using "-m 1=4 1=1" violates options syntax, at least for the standard 
getopt parser. The man page for moused says that you can use 
multiple instances of the -m option. Does this work if you use 

moused_flags="-3 -m 1=4 -m 1=1"  
? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42657 

From: Valentin Nechayev <netch@iv.nn.kiev.ua>
To: Bruce M Simpson <bms@spc.org>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: misc/42657: /etc/rc.syscons: moused has malformed command line
Date: Sun, 15 Sep 2002 15:58:30 +0300

  Wed, Sep 11, 2002 at 13:21:51, bms (Bruce M Simpson) wrote about "misc/42657: /etc/rc.syscons: moused has malformed command line": 
 
 BMS> 	moused_flags="-3 -m 1=4 1=1"
 
 This is your fault. Correct variant is: "-3 -m 1=4 -m 1=1"
 At my system, "-m 2=3 -m 3=2" works without any problem.
 
 
 /netch
State-Changed-From-To: feedback->closed 
State-Changed-By: schweikh 
State-Changed-When: Tue Sep 17 09:24:39 PDT 2002 
State-Changed-Why:  
Pilot error. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42657 
>Unformatted:
