mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
linkat: fix no return in successful gettarget()
This commit is contained in:
@@ -26,6 +26,8 @@ static int gettarget(fd_t** targ, dirnode_t** targnode, int ifd, proc_t* proc){
|
|||||||
else
|
else
|
||||||
*targnode = proc->cwd;
|
*targnode = proc->cwd;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -89,7 +91,6 @@ syscallret syscall_linkat(int srcdirfd, const char* srcpath, int tgtdirfd, const
|
|||||||
fd_release(tgtfd);
|
fd_release(tgtfd);
|
||||||
|
|
||||||
retv.ret = retv.errno ? -1 : 0;
|
retv.ret = retv.errno ? -1 : 0;
|
||||||
|
|
||||||
return retv;
|
return retv;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user