Skip to content
Snippets Groups Projects
Commit bc011703 authored by rsc's avatar rsc
Browse files

The final curproc[cpu()] is now cp

parent ab5c2dbb
No related branches found
No related tags found
No related merge requests found
...@@ -557,11 +557,10 @@ namei(char *path, int mode, uint *ret_off, ...@@ -557,11 +557,10 @@ namei(char *path, int mode, uint *ret_off,
char **ret_last, struct inode **ret_ip) char **ret_last, struct inode **ret_ip)
{ {
struct inode *dp; struct inode *dp;
struct proc *p = curproc[cpu()]; struct proc *cp = curproc[cpu()];
char *name; char *name;
int namelen; int namelen;
uint off, dev; uint off, dev, inum;
uint inum;
if(ret_off) if(ret_off)
*ret_off = 0xffffffff; *ret_off = 0xffffffff;
...@@ -573,7 +572,7 @@ namei(char *path, int mode, uint *ret_off, ...@@ -573,7 +572,7 @@ namei(char *path, int mode, uint *ret_off,
if(*path == '/') if(*path == '/')
dp = iget(rootdev, 1); dp = iget(rootdev, 1);
else { else {
dp = iincref(p->cwd); dp = iincref(cp->cwd);
ilock(dp); ilock(dp);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment