aboutsummaryrefslogtreecommitdiff
path: root/coreutils/basename.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/basename.c')
-rw-r--r--coreutils/basename.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c
index 177e023cd..1f7a13713 100644
--- a/coreutils/basename.c
+++ b/coreutils/basename.c
@@ -51,6 +51,11 @@ int basename_main(int argc, char **argv)
51 size_t m, n; 51 size_t m, n;
52 char *s; 52 char *s;
53 53
54 if (argv[1] && strcmp(argv[1], "--") == 0) {
55 argv++;
56 argc--;
57 }
58
54 if ((unsigned)(argc-2) >= 2) { 59 if ((unsigned)(argc-2) >= 2) {
55 bb_show_usage(); 60 bb_show_usage();
56 } 61 }