Bug 59624 - Imprecise regexp when adding path components
Summary: Imprecise regexp when adding path components
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: setup
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-02-11 14:01 UTC by Mark Cooke
Modified: 2014-03-17 02:25 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-02-25 17:43:20 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.