summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-04-11 16:55:39 -0400
committerJakob Kaivo <jkk@ung.org>2022-04-11 16:55:39 -0400
commita169e4baf8936576059d3ca42cfa656c0191e592 (patch)
treea832fda65d01620fa07dd5f120f01da5f48051f8
parentc2d237b4766d73be4c4897ac61fded67395c8cfe (diff)
fix -a and -A
-rw-r--r--ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ls.c b/ls.c
index b6ca33a..d01c058 100644
--- a/ls.c
+++ b/ls.c
@@ -156,7 +156,7 @@ static int ls_dir(char *dir, int showdirname)
struct dirent *de;
while ((de = readdir(d)) != NULL) {
if (de->d_name[0] == '.') {
- if (ls_hidden != HIDE_NONE) {
+ if (ls_hidden == HIDE_ALL) {
continue;
}