]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(rm_1): Use new last_component, in place of base_name.
authorJim Meyering <jim@meyering.net>
Sun, 26 Mar 2006 12:07:47 +0000 (12:07 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 26 Mar 2006 12:07:47 +0000 (12:07 +0000)
src/remove.c

index bfb8a39b9beecb124feade15a56efcd0085ef6f4..c1f5b32866cce292dabda381887f761a90c59cf0 100644 (file)
@@ -1338,7 +1338,7 @@ static enum RM_status
 rm_1 (Dirstack_state *ds, char const *filename,
       struct rm_options const *x, int *cwd_errno)
 {
-  char const *base = base_name (filename);
+  char const *base = last_component (filename);
   if (DOT_OR_DOTDOT (base))
     {
       error (0, 0, _("cannot remove `.' or `..'"));