aboutsummaryrefslogtreecommitdiff
path: root/coreutils/rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/rm.c')
-rw-r--r--coreutils/rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/rm.c b/coreutils/rm.c
index ba37762a8..a686fc40c 100644
--- a/coreutils/rm.c
+++ b/coreutils/rm.c
@@ -38,7 +38,7 @@ int rm_main(int argc, char **argv)
38 38
39 if (*argv != NULL) { 39 if (*argv != NULL) {
40 do { 40 do {
41 const char *base = bb_get_last_path_component(*argv); 41 const char *base = bb_get_last_path_component_strip(*argv);
42 42
43 if (DOT_OR_DOTDOT(base)) { 43 if (DOT_OR_DOTDOT(base)) {
44 bb_error_msg("cannot remove '.' or '..'"); 44 bb_error_msg("cannot remove '.' or '..'");