From e8e2aa4a5f5cd3be37dc0308b6fdcc947db7de26 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Tue, 1 Oct 2024 00:41:26 +0300 Subject: [PATCH] Update chdir() implementation Use SetWorkingDirectory() --- syscalls/linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syscalls/linux.cpp b/syscalls/linux.cpp index 3decd9a3..c740b54b 100644 --- a/syscalls/linux.cpp +++ b/syscalls/linux.cpp @@ -1903,8 +1903,8 @@ static int linux_chdir(SysFrm *, const char *path) if (!n) return -linux_ENOENT; + pcb->SetWorkingDirectory(n); debug("Changed cwd to \"%s\"", n->GetPath().c_str()); - pcb->CWD = n; return 0; }