summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}