summaryrefslogtreecommitdiff
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 ba37762..a686fc4 100644
--- a/coreutils/rm.c
+++ b/coreutils/rm.c
@@ -38,7 +38,7 @@ int rm_main(int argc, char **argv)
if (*argv != NULL) {
do {
- const char *base = bb_get_last_path_component(*argv);
+ const char *base = bb_get_last_path_component_strip(*argv);
if (DOT_OR_DOTDOT(base)) {
bb_error_msg("cannot remove '.' or '..'");