Red Hat Bugzilla – Bug 59624
Imprecise regexp when adding path components
Last modified: 2014-03-16 22:25:31 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20020104
Description of problem:
Then adding path components, a regexp is used as follows:
/bin/grep -q "/sbin"
This can fail to match exactly as desired. Something along the following lines
is a better description of what was desired:
/bin/egrep -q "(^|:)/sbin($|:)"
Similarly for the other path check-and-add functions.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Setup the default path with a component that causes incorrect matches
2.Logout and log back in
Actual Results: The /sbin path is not added to the root path.
Expected Results: It should have been
$ rpm -qf setup
Fixed in 2.5.8-1.