aboutsummaryrefslogtreecommitdiff
path: root/coreutils/basename.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/basename.c')
-rw-r--r--coreutils/basename.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c
index f59d7a8de..ec1f85bef 100644
--- a/coreutils/basename.c
+++ b/coreutils/basename.c
@@ -34,7 +34,8 @@ int basename_main(int argc, char **argv)
34 bb_show_usage(); 34 bb_show_usage();
35 } 35 }
36 36
37 s = bb_get_last_path_component(*++argv); 37 /* It should strip slash: /abc/def/ -> def */
38 s = bb_get_last_path_component_strip(*++argv);
38 39
39 if (*++argv) { 40 if (*++argv) {
40 n = strlen(*argv); 41 n = strlen(*argv);