浏览代码

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 年之前
父节点
当前提交
6b585f9dd7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)) {