From: Jim Meyering Date: Sun, 26 Mar 2006 12:07:47 +0000 (+0000) Subject: (rm_1): Use new last_component, in place of base_name. X-Git-Tag: v6.0~560 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cabfe4b6dcc6d01d6133be1b03990aced32e2ad;p=thirdparty%2Fcoreutils.git (rm_1): Use new last_component, in place of base_name. --- diff --git a/src/remove.c b/src/remove.c index bfb8a39b9b..c1f5b32866 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 `..'"));