From 4e36e1749f93f2061c836f4bade9a3dc14079c54 Mon Sep 17 00:00:00 2001 From: Lisa Milne Date: Sat, 30 Aug 2025 10:39:43 +1000 Subject: [PATCH] fix ls not listing symlinked directories properly --- clite/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clite/commands.js b/clite/commands.js index b9661be..164f829 100644 --- a/clite/commands.js +++ b/clite/commands.js @@ -138,7 +138,7 @@ Options: dirs.forEach(function(dir,index) { if (dirs.length > 1) stdio.printf('%s:\n',dir); - var st = stdio.lstat(dir); + var st = stdio.stat(dir); if (!st) { stdio.fprintf(io.stderr,'cannot read file: %s\n',dir); stdio.close(fd);