summaryrefslogtreecommitdiff
path: root/sysfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysfile.c')
-rw-r--r--sysfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysfile.c b/sysfile.c
index 0b7cb9e..400d395 100644
--- a/sysfile.c
+++ b/sysfile.c
@@ -335,7 +335,7 @@ sys_chdir(void)
if(argstr(0, &path) < 0 || (ip = namei(path)) == 0)
return -1;
ilock(ip);
- if(ip->type != T_DIR) {
+ if(ip->type != T_DIR){
iunlockput(ip);
return -1;
}