aboutsummaryrefslogtreecommitdiff
path: root/sys/src/chdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/chdir.c')
-rw-r--r--sys/src/chdir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/chdir.c b/sys/src/chdir.c
index fd1385d..d64446a 100644
--- a/sys/src/chdir.c
+++ b/sys/src/chdir.c
@@ -3,5 +3,6 @@
int
sys·chdir(char *path)
{
- return syscall(·Chdir, path);
+ intptr ret = syscall(·Chdir, path);
+ return error(ret);
}