fix ls not listing symlinked directories properly

This commit is contained in:
Lisa Milne 2025-08-30 10:39:43 +10:00
parent 368a5cddfb
commit 4e36e1749f

View file

@ -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);