]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(remove_parents): Strip trailing slashes.
authorJim Meyering <jim@meyering.net>
Fri, 20 Sep 2002 08:41:02 +0000 (08:41 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 20 Sep 2002 08:41:02 +0000 (08:41 +0000)
src/rmdir.c

index 4c401350d793c8aaa509a5f4df0ad01da50d11c5..d9c0fa51302c1abbd2cbc0ad49dd4ad85f1abf55 100644 (file)
@@ -98,6 +98,7 @@ remove_parents (char *path)
   char *slash;
   int fail = 0;
 
+  strip_trailing_slashes (path);
   while (1)
     {
       slash = strrchr (path, '/');