mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
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:
parent
0f3b5e1f02
commit
6b585f9dd7
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue