faccessat: fix use of unitialized variable

This commit is contained in:
Matheus
2026-04-23 23:07:16 -03:00
parent 4a47d65ccd
commit 7f94276b0b
+1 -1
View File
@@ -29,11 +29,11 @@ syscallret_t syscall_faccessat(context_t *, int dirfd, char *upath, int mode, in
vnode_t *dirnode = NULL;
file_t *file = NULL;
vnode_t *node = NULL;
ret.errno = dirfd_enter(path, dirfd, &file, &dirnode);
if (ret.errno)
goto cleanup;
vnode_t *node = NULL;
ret.errno = vfs_lookup(&node, dirnode, path, NULL, flags & AT_SYMLINK_NOFOLLOW ? VFS_LOOKUP_NOLINK : 0);
if (ret.errno)
goto cleanup;