Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 'drvctl -d' problem



On 21.02.2018 03:38, Makoto Fujiwara wrote:
> I'm often use /sbin/drvctl, usually with -d device argument.
> (the situation is after waked up from sleep).
> 
> Recently I'm getting syntax error and resulting help shown.
> The good version is at 8.99.4, and bad example is at 8.99.12.
> my 8.99.12 version is kept with the name drvctl-8.99.12.
> 
> Following is the log for above symptom.
> 
> cf-j10@makoto 11:16:56/180221(..sbin/drvctl)% sudo /sbin/drvctl-8.99.12 -d iwn0
> Usage: drvctl-8.99.12 -r [-a attribute] busdevice [locator ...]
>        drvctl-8.99.12 -d device
>        drvctl-8.99.12 [-nt] -l [device]
>        drvctl-8.99.12 [-n] -p device [property]
>        drvctl-8.99.12 -Q device
>        drvctl-8.99.12 -R device
>        drvctl-8.99.12 -S device
> 
> cf-j10@makoto 11:17:12/180221(..sbin/drvctl)% sudo /sbin/drvctl  -d iwn0       
> cf-j10@makoto 11:17:29/180221(..sbin/drvctl)% sudo /sbin/drvctl  -r pci3
> cf-j10@makoto 11:17:36/180221(..sbin/drvctl)% 
> cf-j10@makoto 11:17:51/180221(..sbin/drvctl)% ls -l /sbin/drvctl*  
> -r-xr-xr-x  1 root  wheel  19384 Oct 12 18:53 /sbin/drvctl
> -r-xr-xr-x  1 root  wheel  19376 Jan 29 00:00 /sbin/drvctl-8.99.12
> 
> checked the commit log for drvctl.c, but I did not get the meaningfull
> diffs. Please help me to fix the problem, thank you.
> 

There was a bug that reordering of getopt(3) argument handling caused
this failure. It has been already addressed in current:

Module Name:	src
Committed By:	jakllsch
Date:		Wed Feb 14 17:43:09 UTC 2018

Modified Files:
	src/sbin/drvctl: drvctl.c

Log Message:
Revert functional changes in previous, at expense of strict KNF conformance.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sbin/drvctl/drvctl.c


Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index