This commit is contained in:
rsc 2007-08-09 17:53:03 +00:00
parent 9583b476bf
commit 806f4c11f7

View file

@ -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;
} }