mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
faccessat: fix use of unitialized variable
This commit is contained in:
@@ -29,11 +29,11 @@ syscallret_t syscall_faccessat(context_t *, int dirfd, char *upath, int mode, in
|
|||||||
|
|
||||||
vnode_t *dirnode = NULL;
|
vnode_t *dirnode = NULL;
|
||||||
file_t *file = NULL;
|
file_t *file = NULL;
|
||||||
|
vnode_t *node = NULL;
|
||||||
ret.errno = dirfd_enter(path, dirfd, &file, &dirnode);
|
ret.errno = dirfd_enter(path, dirfd, &file, &dirnode);
|
||||||
if (ret.errno)
|
if (ret.errno)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
vnode_t *node = NULL;
|
|
||||||
ret.errno = vfs_lookup(&node, dirnode, path, NULL, flags & AT_SYMLINK_NOFOLLOW ? VFS_LOOKUP_NOLINK : 0);
|
ret.errno = vfs_lookup(&node, dirnode, path, NULL, flags & AT_SYMLINK_NOFOLLOW ? VFS_LOOKUP_NOLINK : 0);
|
||||||
if (ret.errno)
|
if (ret.errno)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|||||||
Reference in New Issue
Block a user