소스 검색

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;
     struct stat st;
     int rc = stat(path, &st);
     int rc = stat(path, &st);
     if (rc < 0) {
     if (rc < 0) {
-        printf("lstat(%s) failed: %s\n", path, strerror(errno));
+        printf("stat(%s) failed: %s\n", path, strerror(errno));
         return 1;
         return 1;
     }
     }
     if (!S_ISDIR(st.st_mode)) {
     if (!S_ISDIR(st.st_mode)) {