Bug 2191 - /etc/rc.d/rc deals with $1 instead of $i
Summary: /etc/rc.d/rc deals with $1 instead of $i
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-04-15 08:22 UTC by Marc MERLIN
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-04-15 13:54:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Marc MERLIN 1999-04-15 08:22:12 UTC
I also added skipping of rpmnew files. I understand that
you are not likely to ever generate those files for init
scripts, but it's doesn't cost much to check anyway

Since the patch isn't too long, I pasted it here:
--- rc.redhat   Thu Feb  4 11:11:00
1999
+++ rc  Thu Apr 15 00:11:33
1999
@@ -42,8 +42,9
@@
                [ ! -f $i ] &&
continue

                # Don't run [KS]??foo.{rpmsave,rpmorig}
scripts
-               [ "${1%.rpmsave}" != "${1}" ] &&
continue
-               [ "${1%.rpmorig}" != "${1}" ] &&
continue
+               [ "${i%.rpmsave}" != "${i}" ] &&
continue
+               [ "${i%.rpmorig}" != "${i}" ] &&
continue
+               [ "${i%.rpmnew}" != "${i}" ] &&
continue

                # Check if the subsystem is already
up.

subsys=${i#/etc/rc.d/rc$runlevel.d/K??}
@@ -64,8 +65,9
@@
                [ ! -f $i ] &&
continue

                # Don't run [KS]??foo.{rpmsave,rpmorig}
scripts
-               [ "${1%.rpmsave}" != "${1}" ] &&
continue
-               [ "${1%.rpmorig}" != "${1}" ] &&
continue
+               [ "${i%.rpmsave}" != "${i}" ] &&
continue
+               [ "${i%.rpmorig}" != "${i}" ] &&
continue
+               [ "${i%.rpmnew}" != "${i}" ] &&
continue

                # Check if the subsystem is already
up.
                subsys=${i#/etc/rc.d/rc$runlevel.d/S??}

Comment 1 Bill Nottingham 1999-04-15 13:54:59 UTC
fixed in initscripts-4.13


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