Skip to content

Commit

Permalink
servers: handle response to chdir()
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Oct 1, 2024
1 parent 42d411e commit afda0f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/servers/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@ void handleSyscallResponse(const SyscallHeader *hdr) {
}

break;

case COMMAND_CHDIR:
if(hdr->header.status) break;

ChdirCommand *chdircmd = (ChdirCommand *) hdr;
strcpy(p->cwd, chdircmd->path);
break;
}

platformSetContextStatus(req->thread->context, req->ret);
Expand Down

0 comments on commit afda0f4

Please sign in to comment.