mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
Add /proc/PID/cwd, a symlink to the process's current directory.
This commit is contained in:
parent
a768c2b919
commit
36b3dc6c32
2 changed files with 9 additions and 1 deletions
|
@ -186,7 +186,7 @@ static int sh_cd(int argc, const char** argv)
|
|||
const char* path = canonicalPath.string().characters();
|
||||
|
||||
struct stat st;
|
||||
int rc = lstat(path, &st);
|
||||
int rc = stat(path, &st);
|
||||
if (rc < 0) {
|
||||
printf("lstat(%s) failed: %s\n", path, strerror(errno));
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue