Bug 4166 - improper use of strchr()?
improper use of strchr()?
Status: CLOSED NEXTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: chkconfig (Show other bugs)
6.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Erik Troan
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-07-22 16:04 EDT by ahosey
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-08-23 16:04:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description ahosey 1999-07-22 16:04:46 EDT
This is in chkconfig.c:

while ((ent = readdir(dir))) {
  if (strchr(ent->d_name, '~') || strchr(ent->d_name,
',') 	      || strchr(ent->d_name, '.')) continue;

This causes chkconfig to omit any filename which has a dot
in it anywhere! This is not good.
Comment 1 Jeff Johnson 1999-08-23 16:04:59 EDT
Fixed in chkconfig-1.0.7-2. Thanks for noticing.

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