Browse Source

Shell: Fix an error message incorrectly complaining about lstat() failure.

The syscall used is actually stat(), so let's be correct about that.
Andreas Kling 6 years ago
parent
commit
6b585f9dd7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Shell/main.cpp

+ 1 - 1
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)) {