Bug 1166 - chkconfig --del deletes more than the named service
chkconfig --del deletes more than the named service
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: chkconfig (Show other bugs)
5.2
All Linux
medium Severity high
: ---
: ---
Assigned To: David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-02-15 01:22 EST by Chris Siebenmann
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-03-22 19:13:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Chris Siebenmann 1999-02-15 01:22:34 EST
chkconfig --del deletes not just the named service, but
all services that have the name as a prefix. Eg, if you
do 'chkconfig --del nfs' and have nfsfs configured on as
well, the --del will delete *both* nfs and nfsfs. No such
bug exists in 'chkconfig --add'.

 This bug can have the obvious deleterious effect.

Example:
bash# chkconfig --list nfs; chkconfig --list nfsfs
nfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
nfsfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
bash# chkconfig --del nfs
bash# chkconfig --list nfs; chkconfig --list nfsfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
nfsfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
bash# chkconfig --add nfs
bash# chkconfig --list nfs; chkconfig --list nfsfs
nfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
nfsfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
bash# chkconfig --add nfsfs
bash# chkconfig --list nfs; chkconfig --list nfsfs
nfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
nfsfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off


------- Email Received From  Chris Siebenmann <cks@hawkwind.utcs.toronto.edu> 02/15/99 02:26 -------
Comment 1 Bill Nottingham 1999-03-22 18:22:59 EST
fixed in chkconfig-1.0.2 (and possibly earlier)
Comment 2 Chris Siebenmann 1999-03-22 18:45:59 EST
I have built and tested a version of chkconfi 1.0.2 (from Starbuck)
on my RedHat 5.1 system (plain, with rpm --rebuild of the .src.rpm),
and this problem is *not* fixed. To fix the problem, you need to not
glob with '%s*' in findServiceEntries() in leveldb.c, per the patch
I emailed in.
Comment 3 Bill Nottingham 1999-03-22 19:13:59 EST
doh!

fixed in chkconfig-1.0.3-1. Thanks!

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