summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index 6a96a5b9a..67e372370 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -698,7 +698,10 @@ main (int argc, char **argv)
if (i < argc)
dir_defaulted = 0;
for (; i < argc; i++)
- gobble_file (argv[i], 1, "");
+ {
+ strip_trailing_slashes (argv[i]);
+ gobble_file (argv[i], 1, "");
+ }
if (dir_defaulted)
{