Bug 59624

Summary: Imprecise regexp when adding path components
Product: [Retired] Red Hat Linux Reporter: Mark Cooke <mpc>
Component: setupAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-02-25 17:43:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mark Cooke 2002-02-11 14:01:46 UTC
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):


How reproducible:
Always

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

Additional info:

$ rpm -qf setup
setup-2.5.7-1

Comment 1 Bill Nottingham 2002-03-11 17:15:36 UTC
Fixed in 2.5.8-1.