Project

General

Profile

Bug #1070

update_drv fails to delete alias with double quotes

Added by Albert Lee over 8 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
cmd - userland programs
Start date:
2011-05-26
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Specifying an alias to update_drv -d with double quotes (as formerly, but no longer, required by update_drv -a) fails to delete the alias . I'm not sure, but this may only occur after the driver failed to attach.

[trisk@kirin]% sudo update_drv -a -i '"pciex1000,73"' mr_sas                  ~
devfsadm: driver failed to attach: mr_sas
Warning: Driver (mr_sas) successfully added to system but failed to attach
[trisk@kirin]% grep mr_sas /etc/driver_aliases                                ~
mr_sas "pciex1000,78" 
mr_sas "pciex1000,79" 
mr_sas "pciex1000,73" 
[trisk@kirin]% sudo update_drv -d -i '"pciex1000,73"' mr_sas                  ~
No entry found for driver (mr_sas) in file (/etc/driver_aliases).
[trisk@kirin]% sudo update_drv -d -i "pciex1000,73" mr_sas   
mr_sas "pciex1000,78" 
mr_sas "pciex1000,79" 

Also available in: Atom PDF