Anonymous | Login | 2024-03-28 21:51 CET |
Main | My View | View Issues |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
0004774 | [alternatives] regular use | major | always | 2011-05-25 16:26 | 2013-08-25 13:54 | ||
Reporter | jcraig | View Status | public | ||||
Assigned To | phil | ||||||
Priority | normal | Resolution | fixed | ||||
Status | closed | ||||||
Summary | 0004774: The alternatives --set option fails for sudo/sudo_ldap | ||||||
Description |
With sudo and sudo_ldap installed the alternatives --auto sudo makes a selection, but using the --set option one is unable to select a specific alternative. # alternatives --display sudo Installed alternatives for sudo are: /opt/csw/bin/sudo sudo /opt/csw/bin/sudo.ldap 60 /opt/csw/bin/sudoedit sudoedit /opt/csw/bin/sudoedit.ldap /opt/csw/bin/sudo sudo /opt/csw/bin/sudo.minimal 50 /opt/csw/bin/sudoedit sudoedit /opt/csw/bin/sudoedit.minimal # alternatives --set sudo /opt/csw/bin/sudo.minimal Error: no installed match found for sudo /opt/csw/bin/sudo.minimal The issue is with: 297 check=`egrep -l "^[^ ]* $1 $2 " $PRIORITIESDIR/*` This assumes a single space between fields. Given the lack of documentation for this file format it is reasonable that one would assume the unix norm of one or more spaces between fields. On fix for this would be: check=`egrep -l "^[^ ]* [ ]*$1 [ ]*$2 " $PRIORITIESDIR/*` As an alternative you may wish to also add support for tab separators. Man page / documentation would be appreciated. I chose to submit this as a alternatives bug rather than a sudo* bug because I believe alternatives should support this functionality. |
||||||
Additional Information | |||||||
Tags | No tags attached. | ||||||
Attached Files | |||||||
|
Copyright © 2000 - 2008 Mantis Group |