The C Source, Patches and (shudder!) Bugs
Post Reply
domcleal
Posts: 1
Joined: 18 Jan 2012, 08:45

udev helper "no data from udev" error in 1.2.1

Post by domcleal » 18 Jan 2012, 08:57

Hi there,

In v1.2.1, the udev helper doesn't seem to be parsing arguments passed from udev correctly. The rules.d file from the last usb-modeswitch-helper release contains the following RUN command:

Code: Select all

ATTRS{idVendor}=="0af0", ATTRS{idProduct}=="7501", RUN+="usb_modeswitch '%b/%k'"
On older releases this seems to call "usb_modeswitch /1-1.1:1.0" as reported in the log files. With 1.2.1, the log file /var/log/usb_modeswitch_noname is created instead and reports:

Code: Select all

USB_ModeSwitch log from Wed Jan 18 06:48:42 GMT 2012

Raw args from udev: 

Using global config file: /etc/usb_modeswitch.conf
No data from udev. Exiting
I can see the argument parsing in the udev helper has changed between releases. Does the udev rules.d file need to change too, or is there a bug in the udev helper?

The bug's also being tracked in Fedora here: #782614

Thanks,
Dominic

Post Reply