Bug 42657

Summary: /etc/rc.syscons: moused has malformed command line
Product: Base System Reporter: Bruce M Simpson <bms>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.6-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
syscons-rc-moused.patch none

Description Bruce M Simpson 2002-09-11 13:30:01 UTC
	In rc.syscons, moused is passed incorrect command line arguments when
	several flags are specified.

Fix: The patch below corrects the problem.
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"
Comment 1 Jens Schweikhardt freebsd_committer freebsd_triage 2002-09-14 12:33:30 UTC
State Changed
From-To: open->feedback

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"  
?
Comment 2 netch 2002-09-15 13:58:30 UTC
 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
Comment 3 Jens Schweikhardt freebsd_committer freebsd_triage 2002-09-17 17:24:39 UTC
State Changed
From-To: feedback->closed

Pilot error.