oops
This commit is contained in:
parent
9583b476bf
commit
806f4c11f7
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ sys_chdir(void)
|
||||||
if((ip = namei(path, NAMEI_LOOKUP, 0, 0, 0)) == 0)
|
if((ip = namei(path, NAMEI_LOOKUP, 0, 0, 0)) == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if(ip == p->cwd) {
|
if(ip == cp->cwd) {
|
||||||
iput(ip);
|
iput(ip);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue