From 6b585f9dd7e53ad11f6c7d06a3d202b39767c8d7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 31 May 2019 06:07:09 +0200 Subject: [PATCH] Shell: Fix an error message incorrectly complaining about lstat() failure. The syscall used is actually stat(), so let's be correct about that. --- Shell/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shell/main.cpp b/Shell/main.cpp index d5f1bab4a84..bd5e9858dda 100644 --- a/Shell/main.cpp +++ b/Shell/main.cpp @@ -110,7 +110,7 @@ static int sh_cd(int argc, char** argv) struct stat st; int rc = stat(path, &st); if (rc < 0) { - printf("lstat(%s) failed: %s\n", path, strerror(errno)); + printf("stat(%s) failed: %s\n", path, strerror(errno)); return 1; } if (!S_ISDIR(st.st_mode)) {