summaryrefslogtreecommitdiff
path: root/src/rmdir.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-12-10 05:39:59 +0000
committerJim Meyering <jim@meyering.net>1994-12-10 05:39:59 +0000
commit06f4d47a294af530aa375bd08ac02ee98008ee06 (patch)
treec43b52aa94aa58e4faf3dbd13433aadf8cb413ad /src/rmdir.c
parent7f58bbba8882cbe89ca61fed1e40821d84573048 (diff)
downloadcoreutils-06f4d47a294af530aa375bd08ac02ee98008ee06.tar.xz
(remove_parents): Use strr?chr instead of r?index.
Diffstat (limited to 'src/rmdir.c')
-rw-r--r--src/rmdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rmdir.c b/src/rmdir.c
index 18f55d81f..59f0797c6 100644
--- a/src/rmdir.c
+++ b/src/rmdir.c
@@ -124,7 +124,7 @@ remove_parents (path)
do
{
- slash = rindex (path, '/');
+ slash = strrchr (path, '/');
if (slash == NULL)
break;
/* Remove any characters after the slash, skipping any extra