mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 05:38:21 +00:00
syscalls: make the *at syscalls use the dirfd_enter and dirfd_leave functions
This commit is contained in:
@@ -9,8 +9,7 @@ syscallret_t syscall_readlinkat(context_t *, int dirfd, const char *upath, char
|
||||
.ret = -1
|
||||
};
|
||||
|
||||
char *path = alloc(strlen(upath + 1));
|
||||
|
||||
char *path = alloc(strlen(upath) + 1);
|
||||
if (path == NULL) {
|
||||
ret.errno = ENOMEM;
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user