aboutsummaryrefslogtreecommitdiff
path: root/core/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/ls.c')
-rw-r--r--core/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ls.c b/core/ls.c
index 072767e..a2fb248 100644
--- a/core/ls.c
+++ b/core/ls.c
@@ -164,7 +164,7 @@ int ls(char *path) {
if (path[strlen(path) - 1] != '/') strcat(fullpath, "/");
strcat(fullpath, name);
}
- stat(fullpath, &file_status);
+ lstat(fullpath, &file_status);
/* File modes */
/* File type */
{