From 4b842782da0fd71db98d394ecb1d8e3d655eb66b Mon Sep 17 00:00:00 2001 From: Ed Maste <emaste@FreeBSD.org> Date: Fri, 15 Jun 2018 14:29:41 +0000 Subject: [PATCH] Correct debug control for linuxulator faccessat The Linuxulator provides per-syscall debug control via the compat.linux.debug sysctl. There's generally a 1:1 mapping between sysctl setting and syscall, but faccessat was controlled by the access setting, perhaps due to copy-paste. Sponsored by: Turing Robotic Industries --- sys/compat/linux/linux_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 36025934f577..ffe03adaebd7 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -554,7 +554,7 @@ linux_faccessat(struct thread *td, struct linux_faccessat_args *args) LCONVPATHEXIST_AT(td, args->filename, &path, dfd); #ifdef DEBUG - if (ldebug(access)) + if (ldebug(faccessat)) printf(ARGS(access, "%s, %d"), path, args->amode); #endif