Bug 239218 - chkconfig fail ungracefully when (misguidedly) provided an argument with slash
Summary: chkconfig fail ungracefully when (misguidedly) provided an argument with slash
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: chkconfig
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-05-06 10:36 UTC by Bowe Strickland
Modified: 2014-03-17 03:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-05-08 01:29:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bowe Strickland 2007-05-06 10:36:00 UTC
Description of problem:
if chkconfig (miguidedly) called with an argument containing a slash, chkconfig
goes to far down the path of trying to create a symlink, failing ungracefully,
leaving one wondering what "half configuration" got left in place.  perhaps a
basename when vetting the argument?


Version-Release number of selected component (if applicable):
fc7-test4


[root@station195 init.d]# ./NetworkManagerDispatcher start
Starting NetworkManagerDispatcher daemon:                  [  OK  ]
[root@station195 init.d]# chkconfig ./NetworkManagerDispatcher on
failed to make symlink /etc/rc2.d/S98./NetworkManagerDispatcher: No such file or
directory
failed to make symlink /etc/rc3.d/S98./NetworkManagerDispatcher: No such file or
directory
failed to make symlink /etc/rc4.d/S98./NetworkManagerDispatcher: No such file or
directory
failed to make symlink /etc/rc5.d/S98./NetworkManagerDispatcher: No such file or
directory

Comment 1 Bill Nottingham 2007-05-08 01:29:20 UTC
Fixed in CVS, will be in 1.3.35-1, some time post F7.


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