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