summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2002-07-11 01:37:08 +0000
committerErik Troan <ewt@redhat.com>2002-07-11 01:37:08 +0000
commit9d9f85e2d96bc9a92f8c9bd52dcd057b462f9ecd (patch)
treedb678bbcca001c1c730889ac2e83443e8e262718 /loader
parentf58773416cd9926a203d0680040c6599e9623a07 (diff)
downloadanaconda-9d9f85e2d96bc9a92f8c9bd52dcd057b462f9ecd.tar.gz
anaconda-9d9f85e2d96bc9a92f8c9bd52dcd057b462f9ecd.tar.xz
anaconda-9d9f85e2d96bc9a92f8c9bd52dcd057b462f9ecd.zip
rindex() doesn't exist anymore
Diffstat (limited to 'loader')
-rw-r--r--loader/kon2/src/child.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/kon2/src/child.c b/loader/kon2/src/child.c
index 5fca88f13..d31257ed6 100644
--- a/loader/kon2/src/child.c
+++ b/loader/kon2/src/child.c
@@ -138,7 +138,7 @@ void ChildStart(FILE *errfp)
else {
if ((execProg = getenv("SHELL")) == NULL)
execProg = "/bin/sh";
- if ((tail = rindex(execProg, '/')) == NULL)
+ if ((tail = strrchr(execProg, '/')) == NULL)
tail = " sh";
sprintf(buff, "-%s", tail + 1);
execl(execProg, buff, 0);