aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-10-17 06:28:42 +0000
committerBill Nottingham <notting@redhat.com>1999-10-17 06:28:42 +0000
commit6632062a34f4ea6a35835e03283153286f571b27 (patch)
tree44c02879102d2849d5a8b8308d5adb4f51ac9484 /src
parent30603619708df45c34227945049db35557ba348c (diff)
downloadinitscripts-6632062a34f4ea6a35835e03283153286f571b27.tar
initscripts-6632062a34f4ea6a35835e03283153286f571b27.tar.gz
initscripts-6632062a34f4ea6a35835e03283153286f571b27.tar.bz2
initscripts-6632062a34f4ea6a35835e03283153286f571b27.tar.xz
initscripts-6632062a34f4ea6a35835e03283153286f571b27.zip
oops. DWIM, not as I say.
Diffstat (limited to 'src')
-rw-r--r--src/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 76087a9a..acdb5a35 100644
--- a/src/process.c
+++ b/src/process.c
@@ -250,8 +250,8 @@ int runCommand(char *cmd, int reexec, int quiet, int debug) {
cmdname = (char *)basename(args[0]);
else
cmdname = (char *)basename(args[1]);
- if ((cmdname[0] =='K' || cmdname[0] == 'S') && ( 30 <= cmdname[1] <= 39 )
- && ( 30 <= cmdname[2] <= 39 ) )
+ if ((cmdname[0] =='K' || cmdname[0] == 'S') && ( '0' <= cmdname[1] <= '9' )
+ && ( '0' <= cmdname[2] <= '9' ) )
cmdname+=3;
if (!reexec) {
pid=forkCommand(args,&fds[0],&fds[1],NULL,quiet);