summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-09-20 08:41:02 +0000
committerJim Meyering <jim@meyering.net>2002-09-20 08:41:02 +0000
commitf0693e040c6eba26782035ad9442ed017756f129 (patch)
tree96fbdd10b1030ce0146bc9ba97de22e72d013201 /src
parent899a855343618ecd5fcf3226d68fee272d6eed61 (diff)
downloadcoreutils-f0693e040c6eba26782035ad9442ed017756f129.tar.xz
(remove_parents): Strip trailing slashes.
Diffstat (limited to 'src')
-rw-r--r--src/rmdir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rmdir.c b/src/rmdir.c
index 4c401350d..d9c0fa513 100644
--- a/src/rmdir.c
+++ b/src/rmdir.c
@@ -98,6 +98,7 @@ remove_parents (char *path)
char *slash;
int fail = 0;
+ strip_trailing_slashes (path);
while (1)
{
slash = strrchr (path, '/');