diff options
author | Jim Meyering <jim@meyering.net> | 2006-03-26 12:07:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-03-26 12:07:47 +0000 |
commit | 0cabfe4b6dcc6d01d6133be1b03990aced32e2ad (patch) | |
tree | 955fa4d99d58ce6761c08f1cb41830d638624222 | |
parent | 00f103b6d1580042aac603c99647758f1da108ce (diff) | |
download | coreutils-0cabfe4b6dcc6d01d6133be1b03990aced32e2ad.tar.xz |
(rm_1): Use new last_component, in place of base_name.
-rw-r--r-- | src/remove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c index bfb8a39b9..c1f5b3286 100644 --- a/src/remove.c +++ b/src/remove.c @@ -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 `..'")); |