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

The syscall used is actually stat(), so let's be correct about that.
This commit is contained in:
Andreas Kling 2019-05-31 06:07:09 +02:00
parent 0f3b5e1f02
commit 6b585f9dd7
Notes: sideshowbarker 2024-07-19 13:49:45 +09:00

View file

@ -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)) {