Skip to content

Commit

Permalink
linuxulator: Fix conflicting type in linux_file
Browse files Browse the repository at this point in the history
  • Loading branch information
w4123 committed Nov 12, 2024
1 parent 9333791 commit 7a7d224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/compat/linux/linux_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ linux_access(struct thread *td, struct linux_access_args *args)
#endif

static int
linux_do_accessat(struct thread *td, int ldfd, const char *filename,
linux_do_accessat(struct thread *td, int ldfd, const char * __capability filename,
int amode, int flags)
{
int dfd;
Expand All @@ -627,7 +627,7 @@ linux_do_accessat(struct thread *td, int ldfd, const char *filename,
return (EINVAL);

dfd = (ldfd == LINUX_AT_FDCWD) ? AT_FDCWD : ldfd;
return (kern_accessat(td, dfd, LINUX_USER_CAP_PATH(filename),
return (kern_accessat(td, dfd, filename,
UIO_USERSPACE, flags, amode));
}

Expand Down

0 comments on commit 7a7d224

Please sign in to comment.