summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index 96a9c4c97..1c8d0d8e2 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -4132,7 +4132,7 @@ print_color_indicator (const struct fileinfo *f, bool symlink_target)
{
name = f->linkname;
mode = f->linkmode;
- linkok = f->linkok - 1;
+ linkok = f->linkok ? 0 : -1;
}
else
{